<HR SIZE=1 /HR> "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
1. Does AcceptEx and ConnnectEx support IOCP? 2. Mswsock.h doesn't have a declare of ConnectEx, how can I use it? 3. If A sends a packet to B, then B receives it use in an IOCP method, but how does B know when to call WSAReceive? DO I have to use WSAAsyncSelect/WSAEventSelect at the same time?
1. Yes, and yes. 2. U should be using winsock2.h 3. IOCP sockets that support 'receiving data', should be in a constant state of 'being ready to receive data. Due to the nature of IOCP, the worker threads are the ones handling the events, so you don't want to use WASAsyncSelect/WSAEventSelect stuff.
There are a couple of really good articles on CP for IOCP servers and sockets - you should have a look at them. Also, remember that if you have multiple buffers per socket (which you should have), you will not always be able to guarantee the sequence of partial packets received when you run on a multi-CPU box.
The problem I am facing is button is not created by me, so unable to get the ID. Its the default button of property sheet. (Just like the OK button in MessageBox).. I have tried the same code with a button ID IDOK but its not working.