or nakash

or nakash

  • NA
  • 23
  • 0

HELP - Asynchronous Sockets

Feb 16 2010 10:46 AM
Hi. First of all I want to thank you all guys for helping me.
What I am trying to make is a little program that will make thins on client when server sends a string. The problem is when I connect for the first time everything works okay,but when I try to connect again - after I closed the program, I can't send the string again for example when I close the client I need to restart the server so I can send again strings,maybe it happens becuase I am trying to connect with the same IP? if yes,is there a way to fix this? Here is the code:

SERVER - http://pastebin.com/m6829ae1f
CLIENT - http://pastebin.com/m704bbd7e

Thanks!

Answers (6)