Questions tagged [iocp]

An I/O Completion Port (IOCP) provides a way to execute asynchronous I/O operations efficiently on Windows.

An I/O Completion Port (IOCP) provides a way to execute asynchronous I/O operations efficiently on Windows.

It can be used by the native CreateIoCompletionPort() function. It's also used internally by some of the types that use the Begin*-End* asynchronous programming model in .Net.

350 questions
-1
votes
1 answer

Non-IOCP client send/recv error with IOCP server

Please understand that I am new to IOCP and my code may not be so perfect. I tried many examples from around here, neither one helps me. My actual problem is in the client side, I have no idea if I am connecting properly to a IOCP server, neither if…
C. Raluca
  • 75
  • 1
  • 2
  • 10
-1
votes
2 answers

IOCP can not run in x64 platform

I have met a problem when I use IOCP in x64 platform. When I compile my code in win32 platform, it runs well. But when I change it to x64 platform, function GetQueuedCompletionStatus(CompletionPort, &BytesTransferred,(PULONG_PTR)&PerHandleData,…
hoestelan
  • 43
  • 4
-1
votes
2 answers

IOCP, AcceptEx, overlapped and WSAEINVAL

I have a server that uses IOCPs, sockets and overlapped. Initially everything is just wonderful. The listening socket hands off to a newly created socket using AcceptEx on an IOCP. I can handle thousands of connections just fine. When the server…
-1
votes
1 answer

Is it possible to change the ULONG_PTR completion key associated to an HANDLE in Windows I/O Completion Ports?

I associate an HANDLE "h_server" that I create with CreateNamedPipe() with an I/O Completion Port, and for the completion key I use a function pointer: namedpipe_server_completion_routine(). Now, when a named pipe client connection request triggers,…
Marco Pagliaricci
  • 1,366
  • 17
  • 31
-4
votes
1 answer

Can I use std::string in IOCP WSARecv func?

I tried to use std::string in WSARecv (winsock), but it didnt work, can you tell me if it's possibleand and how it works
Vlaidslav
  • 13
  • 1
1 2 3
23
24