Re: listen (sock, back)

new topic     » goto parent     » topic index » view thread      » older message » newer message
FredRansom said...

Didn't fine poll in the EU 4 documentation. Basically, right now it looks like either writing a dll in some other language or just not using EU 4 for server work. Also, client mode fails to act unless its window is in focus. Right now it appears that EU 4 is unsuitable for general tcp/ip use. Please let me know if there is a better way within EU 4.

I've only worked with the Unix version of Eu 4 and sockets. Still, this behavior seems strange. poll() does not exist in Eu 4, but the Unix version of select() can be made nonblocking (this is controlled by the timeout parameter). Under Unix, listen() is nonblocking and does not wait at all. accept() is blocking, but with select() one can call accept() only when it is known that a connection is waiting to be made (such that accept() returns right away). The sockets code just uses winsock, so these are winsock oddities, bugs in the wrapper that Watcom C uses for winsock, or something very strange is going on here.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu