I'm connecting to the server with a client successfully, and the server is printing out:
New Client: 127.0.0.1
If I'm closing a client the server prints out successfully:
Clinet Disconnected: 127.0.0.1
But whenever I send data to the server, the server should print out something like this:
"127.0.0.1: hello
Me:"
But it doesn't, only if I send data to the client before the client does.
Example:
Server send: "Hello Client"
Client send: "Hello Server"
Server print out: "127.0.0.1: Hello Server
Me:"
Client print out: "127.0.0.1: Hello Client
Me:"
However, if I do this:
Client send: "Hello Server"
Server DOES NOT print out: "127.0.0.1: Hello Server
Me:"
So as I experienced, after I send data to the client with the server, then the server will print out the last message, which arrived.
By the way, I'm using Windows 10 with Visual Studio 2017 Community.
I'm still trying to figure out what it the problem, without any success yet