Original Post
Hi, Ive been working on transfering my server code to linux the last few days, the code compiles and works for the most part, but where I used to use Async Winsock in windows, I now use Select in Linux, mainly the problem is knowing what to do when Select tells me something. When a windows client disconnects, the socket its on starts giving me billions of messages("Select keeps pointing me to that socket"), at the moment I dont know how to tell the diffrence between "reads", "writes", "errors" or even "closes" so it just try to read the socket which dosn't help one bit, recv just returns 0 like I didn't get any data and everything is fine and dandy. please any advice would be very helpful expecially sence my searching on google and such has lead me no where. ps. im quite new to linux. [Edited by - Xero-X2 on December 26, 2004 7:26:37 PM]