The way you are using sockets is called asynchronous sockets
 that is when u put any kind of request on the socket like
connect, send and or receive it doesn't waits for the response. you
can acheive response with corresponding end methods
EndReceive EndConnect and EndSend Methods using IAsynResult interface
Or If you want to use Synchronous Sockets then i woud suggest u to use
threads to achevie auto response

Reply via email to