jesper

jesper

  • NA
  • 89
  • 54.4k

streamwriter / reader, client / server freeze

Feb 1 2014 5:11 PM
Hi,
 
I have created a socket server using streamwriter / reader my code is as followed:
 
server code:
 
http://pastebin.com/6vyq5W8q 
 
Client code:
 
http://pastebin.com/u4YCUzRd 
 
My problem is that, when i connect multiple clients to the server, the server or client stop sending or recieving messages..
 
the funny part is that if i have connected 2 clients to the server, then i can send a few messages on both, clients and suddenly only one client responding, the other client just freeze.