V
Vladimir Bezugliy
I have a server that listen a socket.
And I have next client:
TcpClient socketForServer = new TcpClient("IVBEZUGLIY", 21000);
NetworkStream networkStream = socketForServer.GetStream();
StreamWriter streamWriter = new StreamWriter(networkStream);
streamWriter.Write("Hello12345!!!");
streamWriter.Flush();
//streamWriter.Close();
socketForServer = new TcpClient("IVBEZUGLIY", 21000);
networkStream = socketForServer.GetStream();
streamWriter = new StreamWriter(networkStream);
streamWriter.Write("Bye-bye!!!");
streamWriter.Flush();
//streamWriter.Close();
But server get only first message.
If I remove comments, then server get both messages.
Is it a bug? Or I do not know something?
And I have next client:
TcpClient socketForServer = new TcpClient("IVBEZUGLIY", 21000);
NetworkStream networkStream = socketForServer.GetStream();
StreamWriter streamWriter = new StreamWriter(networkStream);
streamWriter.Write("Hello12345!!!");
streamWriter.Flush();
//streamWriter.Close();
socketForServer = new TcpClient("IVBEZUGLIY", 21000);
networkStream = socketForServer.GetStream();
streamWriter = new StreamWriter(networkStream);
streamWriter.Write("Bye-bye!!!");
streamWriter.Flush();
//streamWriter.Close();
But server get only first message.
If I remove comments, then server get both messages.
Is it a bug? Or I do not know something?