Quantcast
Viewing all articles
Browse latest Browse all 20637

EASY TCP/IP : TCPWRITE: when to socketdisconnect? : REPLY

I checked it meanwhile. My ideas was absolutly right: The client can disconnet immediatly after TCPWRITE. The server can read the input buffer even after connection has been closed. The sample is a bit unfair, as it reads the buffer only while the connection is established. I think in most cases it is a good idea to read the buffer when there is data present, connection established or not.

Viewing all articles
Browse latest Browse all 20637

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>