cc socketserver.c -o server -lsocket lnsl. It performs all networking in an asynchronous paradigm, and as best as I'm able to determine, it can handle as many simultaneous connections as your operating system is able to maintain.įirst, a few utility classes: I rolled my own concurrent versions of std::queue and std::map mostly as a training exercise. Compile both the client and the server in Linux or in Unix like below: cc socketclient.c -o client -lsocket -lnsl. The basic idea is that it is a relatively simple stand-alone class capable of functioning either as a server or client depending on its needs. For this project, I'm using the non-Boost version of the ASIO library.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |