winapi - How can application recv data with WSA_IO_PENDING? -


After

I am creating a sniper application using LSP / SPI. But I do not understand how this app works with the network.

No one is "connected" or there are no WSX connect calls. I stop WSPRecv, WSPSend, WSPCloseSocket, but no WSPConnect

Another funny thing - WSPRecv always shows WSA_IO_PENDING, but hEvent in lpOverlapped is empty, lpCompletionRoutine is also empty. And any call to WSPGetOverlappedResult (WSAGetOverlappedResult, GetOverlappedResult) and GetQueuedCompletionStatus (GetQueuedCompletionStatusEx) I bowed all the tasks, but no calls! How does this application read?

Can you help me? how does it work? I miss something

After text "itemprop =" text ">

A parent listens for the connection process. After the connection was established, the parent process started a new hair procedure to deal with the connection. Handles the socket handle attached to the child's process. The baby's process communicates on the socket and eventually the socket closes and turns out.

If you look at the child's process in isolation then you send, receives and closes a final, but there is no initial connection, as you describe.

This is a more general model on Unix, but it is sometimes used on Windows.

For strange overlapping behavior, it may be that what you see if the non blocking sockets of the internal non-blocking socket are applied to asynchronous sockets, but I do not know the details.


Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -