A collection of the C & C++ programming tools, sdks, APIs and similar

C & C++ Tools, Library, APIs resources




Synapse project - blocking (synchronous) sockets network communication

October 8th, 2006 by cplus

This project deals with network communication by means of blocking (synchronous) sockets or with limited non-blocking mode. This project not using asynchronous sockets. The Project contains simple low level non-visual objects for easiest programming without problems (no need multithread synchronization, no need for windows message processing…) Great for command line utilities, visual projects, NT services… You can find more after reading about and features. This project is freeware and open source under modified BSD style license.

The SYNAPSE library aims to create a complete library of classes and functions that would markedly simplify application programming of network communication using Winsock. At first glance this effort might seem needless as there are many free components covering this area, however they mostly use asynchronous methods while SYNAPSE library operates in a synchronous method.

Synchronous mode (called ‘blocking’ in Winsock terminology) features acting thread waits until the needed operation terminates. Thus when we want to send data, the program exits function only after data is sent - or - if we want to receive data, the program exits the function only after the desired data is received.

Thus, much more crisp and simple programming is achieved. You will feel it when trying to implement any Internet protocol, which is typically based on ’send-wait for reply’ method. If you want to implement it in an asynchronous method, you would have to accept complicated event processing and synchronous mode simulation. Therefore a synchronous socket is simple and natural for the majority programming tasks. The whole library is oriented on the WIN32 environment or Linux environment, so you will need Delphi 3.0 or higher and Kylix 1.0 or higher to use it.

Filed under Library, SDK/PSDK, Tools having

OOOPPS! NO RELATED POST!



Leave a Comment:

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.