Hi all ,
with BegeinReceive I can build async method of Socket Class
that Receive the data from the Socket Client .
My question is , if I have this code that create 3 Receive Async Call :
<code>
mySocket.BeginR eceive(param1,p aram2,param3... ..);
mySocket.BeginR eceive(param1,p aram2,param3... ...);
mySocket.BeginR eceive(param1,p aram2,param3... ...);
myThread.wait()
<code>
and If the Client Socket send my 3 async Message, what will happened ?
BeginReceive1, that receive message 1 ||| BeginReceive2, that receive message 2 ||| BeginReceive3, that receive message 3
or :
BeginReceive1, that receive Message 1
BeginReceive2, that receive Message 2
BeginReceive3, that receive Message 3
The 3 SendMessage is listen at the same time from server ?
or :
The server listen the Message1 with BeginReceive1,
server listen the Message 2 with BeginReceive2 when BeginReceive1 has finish to listen the Message 1
server listen the Message 3 with BeginReceive3 when BeginReceive 2 has finish to listen the Message 2 .
Thank all ,
dm
with BegeinReceive I can build async method of Socket Class
that Receive the data from the Socket Client .
My question is , if I have this code that create 3 Receive Async Call :
<code>
mySocket.BeginR eceive(param1,p aram2,param3... ..);
mySocket.BeginR eceive(param1,p aram2,param3... ...);
mySocket.BeginR eceive(param1,p aram2,param3... ...);
myThread.wait()
<code>
and If the Client Socket send my 3 async Message, what will happened ?
BeginReceive1, that receive message 1 ||| BeginReceive2, that receive message 2 ||| BeginReceive3, that receive message 3
or :
BeginReceive1, that receive Message 1
BeginReceive2, that receive Message 2
BeginReceive3, that receive Message 3
The 3 SendMessage is listen at the same time from server ?
or :
The server listen the Message1 with BeginReceive1,
server listen the Message 2 with BeginReceive2 when BeginReceive1 has finish to listen the Message 1
server listen the Message 3 with BeginReceive3 when BeginReceive 2 has finish to listen the Message 2 .
Thank all ,
dm
Comment