Re: IOCP question
- From: Kellie Fitton <KELLIEFITTON@xxxxxxxxx>
- Date: Thu, 8 May 2008 12:29:42 -0700 (PDT)
On May 7, 10:42 pm, Vincent <Vinc...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi,
I would like to write an IOCP server which is act as middle man to receive
the data from client A and pass it to client B
First, when client A and client B connect to the server, i will store both
client socket handles.
First we call WSARecv() with the socket handle from Client A. Server will
able to receive the data from client A.
But after i call WSASend() by using socket handle from Client B in order to
send data from A to B, i able to do it, but after that
GetQueuedCompletionStatus will waiting there for data from Client B.
My question is in order to receive the data from A again, should i call
again WSARecv() after WSASend()?
Hi,
You can use the following APIs to determine the status of one or more
sockets waiting if necessary, just call the API with a timeout & check
the shutdown flag if the timer expires:
select()
WSAAsyncSelect()
http://msdn2.microsoft.com/en-us/library/ms740141(VS.85).aspx
http://msdn2.microsoft.com/en-us/library/ms741540.aspx
http://msdn2.microsoft.com/en-us/library/ms738545(VS.85).aspx
http://tangentsoft.net/wskfaq/
Kellie.
.
- References:
- IOCP question
- From: Vincent
- IOCP question
- Prev by Date: RE: wireless networking in managed code
- Next by Date: Re: how can i programmatically enable /disable "File and printer shari
- Previous by thread: IOCP question
- Next by thread: Re: IOCP question
- Index(es):
Relevant Pages
|
|