Re: IOCP in client -- simple test code that doesn't work
- From: "kov" <ken.overton@xxxxxxxxx>
- Date: 1 Nov 2006 06:10:16 -0800
Arkady Frenkel wrote:
The idea of IOCP is save thread context ( both time and memory resources )
for server which need to serve huge number of clients on the very limited
number of the threads ( usually equal to doubled CPU's number ) ,
Yes, and that's exactly why I thought it might be nice in clients with
lots (i.e., around 30-40) sockets it primarily just listens on. I also
would just like to understand how to make IOCPs work -- how much
technical overhead there is, the tricks, etc.
the best article I know is evergreen
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndllpro/html/msdn_servrapp.asp
Thanks, I'll read it fully.
so as Ben Voigt wrote that not for client generally, but no one can stop you
to use it on client too. I propose PSDK example just to check that it work
on your computer as a start test.
Thanks. I had made other server samples work which were quite complex,
maybe the PSDK one will be different. The main difference that I see
is how the socket is created -- via connect on the client and
listen/accept on the server. I'm wondering if something is happening /
getting set in the server workflow that I need to add to my client
workflow.
BTW , what happen if you add already connected socket ( and not created ) to
CreateIoCompletionPort()
I'm afraid I don't understand what you said. A connected socket that's
not created? Maybe you're suggesting I try attaching the socket to the
IOCP *after* connecting to the server?
Thanks,
kov
.
- Follow-Ups:
- Re: IOCP in client -- simple test code that doesn't work
- From: Alexander Nickolov
- Re: IOCP in client -- simple test code that doesn't work
- From: Arkady Frenkel
- Re: IOCP in client -- simple test code that doesn't work
- References:
- Re: IOCP in client -- simple test code that doesn't work
- From: kov
- Re: IOCP in client -- simple test code that doesn't work
- From: Arkady Frenkel
- Re: IOCP in client -- simple test code that doesn't work
- From: Arkady Frenkel
- Re: IOCP in client -- simple test code that doesn't work
- From: kov
- Re: IOCP in client -- simple test code that doesn't work
- From: Ben Voigt
- Re: IOCP in client -- simple test code that doesn't work
- From: kov
- Re: IOCP in client -- simple test code that doesn't work
- From: Arkady Frenkel
- Re: IOCP in client -- simple test code that doesn't work
- Prev by Date: Re: winsock connect failure
- Next by Date: Re: IOCP in client -- simple test code that doesn't work
- Previous by thread: Re: IOCP in client -- simple test code that doesn't work
- Next by thread: Re: IOCP in client -- simple test code that doesn't work
- Index(es):
Relevant Pages
|