listen function

Register your socket as a server Does the same thing that the listen system call does. Returns TRUE if it succeeded, FALSE otherwise. See example in Sockets: Client/Server Communication.