I need to create a server which creates a new thread for each client trying to connect to the server. The new thread created for each client manages the client and the server process listens for new connections from the port.
I need to code in Unix C. This is a sub-task of the task I need to finish as soon as possible. I am new to this field and hence do not know much about creating servers.
Basically, what you’re looking for is something like this :
This is a pretty basic skeleton for a server application which creates a different thread for every incoming client connection. If you don’t know what
bind,listen, oracceptis, then consult the second section of your local manual.