[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