Home > Net >  Socket client, after the success of the reconnection, receiving data is a problem - urgent
Socket client, after the success of the reconnection, receiving data is a problem - urgent

Time:04-21

Set the
SockClientIp [I] SendTimeout=500;
SockClientIp [I] ReceiveTimeout=1000;
SockClientIp [I] Bind (endPoint1);
ConnResult=sockClientIp [I] BeginConnect (address, portt, null, null);
ConnResult. AsyncWaitHandle. WaitOne (2000, true);
Connection status with connResult IsCompleted!=false & amp; & SockClientIp [I] Connected==true

1. New Socket client, connection, and the connection is successful, data transceiver is normal,
2. After disconnecting, Socket has been started reconnection, at this time, the plug in cable, plug in the Socket after binding the connection is successful,
3. After completion of step 2, to send data, when the program go to receive data is not successful, error message - means: due to a host server run no feedback or response; But in fact the connection is successful, without this problem with Ethernet debugging software

Excuse me the great spirit, this is what causes?
  •  Tags:  
  • C#
  • Related