I am looking to do socket communications (listen, accept, connect, recv, send, disconnect) in both linux and windows. My project is in C, so unless someone can think of a way fo
I don't know one library that complies both Windows and Linux but I think winsock
is similar enough to Linux socket programming.
In particular it supplies you 'select()' and the other functions mentioned. I guess you will need a very thin #ifdef wrapper to avoid type casting warnings.
See here the winsock page for select