carlos@eeyore.caltech.edu ('Los) (07/21/90)
Yo! I'm writing a GUI for TCP-IP. I've set up a TCP-IP socket with I/O blocking disabled- fcntl(theSocket, F_SETFL, FNDELAY), a DPS event (DPSAddFD) mon- itoring the socket and am using recv and send. OK. The problem is that I am able to recv data fine. However, I am unable to send data. (I'm trying to send a character at a time.) Whenever I send I get an EWOULDBLOCK message. This seems to indicate that the socket is full, but how could it be if I recv all the data when it arrives? Should I be using something like select? On a separate note, how do I detect if the socket is closed? What other conditions should I look for and handle? 'Los