Home > other >  The Socket communication problems.
The Socket communication problems.

Time:10-04

Everyone a great god, I just contact the socket communication, have a question to consult, I get more information from a client, he asked me to return to give him a string of data, as demand, I give him the data returned, but the connection channel has been closed, the client side have to connect again, again want to send data to the great god help me to solve, thank you


The code below
This is my back to the client code,







CodePudding user response:

The client then on the other side of the state

CodePudding user response:

Put the complete code, it's not you send in the screenshot,

CodePudding user response:




Companies seem to encapsulate the socket well, all could not see, the other player can you tell me how much you qq I private chat you

CodePudding user response:

Check again, this is the active disconnect, here in BeginDisconnect set breakpoints, watch ever go,

CodePudding user response:

I put all use BeginDisconnect method to set breakpoints are not into this method

CodePudding user response:

Make sure is your side close or at the other end,

CodePudding user response:

You capture the error code and see what the problem is not to know
  • Related