Adding Network Functionality To Any .Net Application in 3 Lines of Code

Please give us 60 seconds to demonstrate the simplest, most concise, way of adding network functionality to any .Net application.

Using NetworkComms .net you can send any custom object via TCP or UDP using IPv4 or IPv6 across multiple platforms in just a single line of code. Having said that there are also much more powerful methods/features available (click here for a full feature list):

To receive:

There you have it. Only three lines of code (ok, one is a little on the long side).

We happily make NetworkComms.Net freely available via GPLv3. To help keep us warm and our lights on we also provide commercial licences.

To download a working example please click here or see further tutorials here.

Tagged with:
Posted in Blog
4 comments on “Adding Network Functionality To Any .Net Application in 3 Lines of Code
  1. Zhou Feng says:

    Please publish the example to use with Visual Basic 6 soft.

  2. James says:

    Networks are prone to errors and various other issues. How do you deal with latency and errors in the above code?

  3. Developers says:

    @James – You catch various exceptions allowing you how to handle different scenarios however you choose, see API docs then browse NetworkCommDotNet Namespace > CommsException.

    @Zhou – In vb.net the only line that changes is the one that calls AppendGlobalIncomingPacketHandler as follows:

  4. msdotnettraining says:

    Thank you for posting. nice article.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

Please Support Our Network Library

Not a commercial customer? Found NetworkComms.Net useful? Your support, however small, would be greatly appreciated. Vote for our posts on stackoverflow.com, write a blog post, leave a comment or make a donation, PayPal below or Bitcoin (16iWjjN3bJwJUPqkw88WXN9EPhLz2kqrfE).