Home > other >  TCP socket c # does not allow for the connection of the socket to perform this operation
TCP socket c # does not allow for the connection of the socket to perform this operation

Time:10-30


[align=left] the if (tcpClient!=null)
{
StatusStripInfo. Invoke (shwStatusInfoCallBack, "received a connection.");

networkStream=tcpClient. GetStream (); /the problem in this
Br=new BinaryReader (networkStream);
Bw=new BinaryWriter (networkStream);
}
[/align]
This is a server accepts the application, tcpClient already can instantiate and have the machine's IP and port, but is unable to implement GetStream ()
Don't know why, please god to solve! ??

CodePudding user response:

Check the tcpclient connection status
  • Related