Written in the Java server, the client is others using VB to write a good (specific how to realize I don't know), the client continues to send data to the server, look from the function, the client does not accept the data, so he Socket should not read receive data,
Server side wants to use a heartbeat packet mechanism to detect TCP connection, first set up the read timeout value, in the read timeout after sending heartbeat packets (Socket. SendUrgentData (0 XFF),
I want to ask is: the server sends of heartbeat packets do not take up the client's TCP receive buffer? If take up that sooner or later the buffer will be heartbeat bag filling,
In don't know how the vb client implementation situation, how to detect whether the network abnormal disconnect (such as pulling cable, power outages, crash, etc.)?