Sockets, Multiple I/O
I am "updating" my chat server from being between only two people who could only send and recieve messages when no activity is going on to mulitple users speaking at one time. It will only need to be for 5 or 10 sockets. I have read around and been recommended to the select() function the most. I am having trouble applying the concepts of the select function. I am aiming this to be for windows 98 and 2k nt4 and up OS's and maybe *nix (hehe very general :)). If anyone has a good example or know a link to the select() in C I would like to look over and apply it to my situation, or if you have a good link to the select() function. Thank you in advanced
Sorry for the double post. I forgot if my username had the underscores or not :). Sorry once again.
Try the man page for it.
Pull up your favourite search engine and spend a few minutes, and you should have all you need to get the job done. For example, the link at the bottom of seaid search...
Thank you both. This should be enough.