UDP Broadcasting

One of the great strengths of UDP (User Datagram Protocol) is broadcasting. This feature allows a single sent packet (datagram) to be to received by multiple peers on the same network. The alternative would be an independent send for each desired destination. The following scenarios are several examples when you might consider using UDP broadcasts: […]

Continue Reading »

Using Encryption

NetworkComms.Net makes it really easy to add pre-shared key (PSK) encryption to secure your data transmissions.  In this tutorial we will demonstrate how just 4 extra lines of code are required  to enable PSK encryption on a connection. Some considerations that you should also take when using PSK encryption will also be discussed. Server Side If you […]

Continue Reading »

Exception Handling

Networking by its very nature is asynchronous, i.e. almost anything can happen in any order at any time. This was one of the primary difficulties we have attempted to simplify when writing our network library. We have attempted to keep our network library as transparent as possible when it comes to errors and the aim […]

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 »

Enable Logging

In code … It’s really easy to add logging to any application that uses our .net network library. Under the hood we are using NLog and it can be enabled as follows: If you just want to log to a console window add this C# code snippet wherever you are also enabling the library:

[…]

Continue Reading »

Creating A WPF Chat Client Server 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. Note2: This example is included, and has been significantly extended to demonstrate further features, in the examples bundle included in the package downloads. Before we get started ensure you have […]

Continue Reading »