Questions tagged [getoverlappedresult]
5 questions
1
vote
1 answer
WSAGetOverlappedResult doesn't return data from socket
Here's my code, I'd like to focus on the call to WSARecv and WSAGetOverlappedResult:
#define WIN32_LEAN_AND_MEAN
#include
#include // for ACCEPT_CONTEXT
#include
#include // for wprintf
#include…

Janus Troelsen
- 20,267
- 14
- 135
- 196
1
vote
1 answer
ReadDirectoryChangesW only places single event in the FILE_NOTIFY_INFORMATION buffer
I have a problem that ReadDirectoryChangesW keeps missing events.
I did a lot of googling and the bellow function arguments seem correct according to my searches, but nobody knows for certain. I start watching like this.
BOOL _watchRequestResult =…

Tomáš Zato
- 50,171
- 52
- 268
- 778
0
votes
1 answer
WinSock: How to properly time out receive using overlapped I/O
Problem criteria:
my service is Windows-only, so portability is not a constraint for me
my service uses threadpools with overlapped I/O
my service needs to open a connection to a remote service, ask a question and receive a reply
the remote service…

rguilbault
- 553
- 1
- 5
- 17
0
votes
1 answer
Using the timeout in GetOverlappedResultEx to simulate a wait with timeout?
When using GetOverlapedResult to get the result of an overlapped (i.e. asynchronous) I/O operation, you can ask GetOverlappdResult to "wait":
DWORD le = ERROR_SUCCESS; //lastError = 0
if (!ReadFile(FSourceDiskHandle, buffer, BUFFER_SIZE, out…

Ian Boyd
- 246,734
- 253
- 869
- 1,219
0
votes
1 answer
Why is GetOverlappedResult giving 0 bytes result for ReadDirectoryChangesW?
I have written a file system watcher for our project. Suddenly, it stopped getting events properly. I found out, that after GetOverlappedResult returns true, the result data are empty and so is bytes returned.
This is how I create file handle for…

Tomáš Zato
- 50,171
- 52
- 268
- 778