It may be desirable to send partial data held on disk rather than from memory. This can be easily achieved by using the provided wrapper object StreamSendWrapper:

The receiving client  should handle the incoming data as  byte[]:

To see a worked example which uses StreamSendWrapper to send large files please see our file transfer application tutorial. If you […]

Continue Reading »

Multiple Adapter Support

NetworkComms.Net’s functionality is totally customisable for a general selection of network adaptors. Multiple adaptors can be included when listening for incoming connections by specifying IPAddress.Any for the desiredLocalEndPoint parameter, i.e.

Here the port parameter provided is zero which implies a random port should be selected. If a non-zero port number is provided that port will […]

Continue Reading »

Send Receive Options

A large number of methods, such as Connection.SendObject and NetworkComms.AppendGlobalIncomingPacketHandler, take an optional SendReceiveOptions object parameter. SendReceiveOptions objects contain all of the options required to modify the sending and receiving of data. Among other features, which we introduce below, it primarily allows you to customise the serialisation, and using the nomenclature of data processing, steps such as […]

Continue Reading »

TCP & UDP Connections

NetworkComms.Net seamlessly supports both TCP and UDP IP transport protocols. An extensive discussion of scenarios where each type might be preferable can be found here. You can easily choose between the different transport protocols when creating connections:

For more information on these specific methods please see TCPConnection.GetConnection and UDPConnection.GetConnection. Once a connection has been created it […]

Continue Reading »

Custom Objects

One of the great features of this network library is the ability to send custom objects and at the same time easily incorporate compression, encryption etc. This is in part due to the features made available from serialisation libraries such as protobuf-net. Demonstrating this functionality is the primary goal of the AdvancedSend example included in the […]

Continue Reading »

Creating A WPF File Transfer Application

Note: This tutorial is fairly extensive, if you are after something shorter please also see our Getting Started and How To Create a Client Server Application In Minutes tutorials. Note: This example is also included in the example bundle when you download NetworkComms.Net. You are welcome to open that example and simply follow this tutorial to see how it was put […]

Continue Reading »

C# Network Library

The motivation behind NetworkComms.Net was to create a fully featured C# network library with which network functionality could be easily added to any application, from .net 2 up to .net 4.5 (Mono, Unity3d, iOS, Android, WinRT/Windows Store and Windows Phone 8 also supported). We also wanted to require little to no knowledge of networking to make things […]

Continue Reading »