At its core networking is asynchronous and that behavior is, to an extent, reflected in the implementation of NetworkComms.Net. In our continuing endeavour to provide the most flexible .net network library on the planet we have also provided features which make the synchronous request for data and the corresponding response really straight forward.

In the following code we send and receive a CustomObject class. For more information on using custom objects please see this tutorial.

On the client side you can request data synchronously from a server as follows:

On the server side the configuration is identical regardless of whether the client is making a synchronous or asynchronous request:

Hopefully this short tutorial demonstrates how you can easily make synchronous network requests for data using our network library. If you found this tutorial useful, have any feedback or questions please leave a comment or post on our forum.