overlapped-io
Windows NAmed Pipes alternative in Linux
We are porting existing windows code to Linux. We are using ACE as abstraction layer. We are using windows named pipes f开发者_StackOverflow社区or communicating with multiple clients and to perform ov[详细]
2023-01-12 19:59 分类:问答Calls to ReadFile return ERROR_WORKING_SET_QUOTA
The program runs fine for a few minutes and then ReadFile starts failing with error code ERROR_WORKING_SET_QUOTA.[详细]
2023-01-10 16:26 分类:问答WSASYSCALLFAILURE with overlapped IO on Windows XP
I hit a bug in my code which uses WSARecv and WSAGetOverlapped result on an overlapped socket. Under heavy load, WSAGetOverlapped returns with WSASYSCALLFAILURE (\'A system call that should never fail[详细]
2023-01-08 02:15 分类:问答hEvent member in OVERLAPPED Win32 structure
When asynchronous I/O (or "overlapped" I/O in Win32 jargon) is used, we need to deal with the OVERLAPPED structure and开发者_开发知识库 his hEvent member. If the I/O function will delay the[详细]
2022-12-24 05:45 分类:问答Is it possible to change HANDLE that has been opened for synchronous I/O to be opened for asynchronous I/O during its lifetime?
Most of my daily programming work in Windows is nowadays around I/O operations of all kind (pipes, consoles, files, sockets, ...). I am well aware of different methods of reading and writing from/to d[详细]
2022-12-23 05:04 分类:问答According to MSDN ReadFile() Win32 function may incorrectly report read operation completion. When?
The MSDN states in its description of ReadFile() function: If hFile is opened with FILE_FLAG_OVERLAPPED, the lpOverlapped paramete开发者_运维技巧r must point to a valid and unique OVERLAPPED structu[详细]
2022-12-23 03:46 分类:问答C# and native overlapped I/O
I have a C dll that I\'m wrapping so that I can call it from C#. One function uses events to notify you when a state has changed, and figuring out to deal with it took some digging. It seems to be wor[详细]
2022-12-15 07:07 分类:问答Named Pipes - Asynchronous Peeking
I need to find a way to be notified when a System.IO.Pipe.NamedPipeServerStream opened in asynchronous mode has more data available for reading on it- a WaitHandle would be ideal. I cannot simply use[详细]
2022-12-14 17:44 分类:问答