How can I tell if a read socket buffer is full or a write socket buffer is empty?
Is there a way I can get the status of a socket buffer without a system call?
UPDATE: How about this: I'd like to get a callback or signal when either the read socket buffer is full or the write socket buffer is empty. This way I can stop processing to allow more I/O to occur on the wire, since being I/O bound is always an issue when sending data on the wire.
The select() call is how you check if the read buffer has something in it. Not when it is full (I think).