diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-04-17 06:54:28 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-04-17 06:54:28 +0000 |
commit | 433e2339ca1605326f35c2d873a42f6d2abe505d (patch) | |
tree | ce82a3d54fc31a41c770ab0ccc40116afabd1008 /buffer_iocp.c | |
parent | 30648529e888dd7438d13d7a0b86625a24c6abcf (diff) | |
download | libevent-433e2339ca1605326f35c2d873a42f6d2abe505d.tar.gz |
Remove long copy-and-paste section full of windows api notes.
svn:r1180
Diffstat (limited to 'buffer_iocp.c')
-rw-r--r-- | buffer_iocp.c | 102 |
1 files changed, 0 insertions, 102 deletions
diff --git a/buffer_iocp.c b/buffer_iocp.c index b8be1489..4ebc6f42 100644 --- a/buffer_iocp.c +++ b/buffer_iocp.c @@ -244,105 +244,3 @@ done: return r; } - -/* - -C++ - -typedef struct _OVERLAPPED_ENTRY { - ULONG_PTR lpCompletionKey; - LPOVERLAPPED lpOverlapped; - ULONG_PTR Internal; - DWORD dwNumberOfBytesTransferred; -} OVERLAPPED_ENTRY, *LPOVERLAPPED_ENTRY; - -C++ - -typedef struct _OVERLAPPED { - ULONG_PTR Internal; - ULONG_PTR InternalHigh; - union { - struct { - DWORD Offset; - DWORD OffsetHigh; - } ; - PVOID Pointer; - } ; - HANDLE hEvent; -} OVERLAPPED, *LPOVERLAPPED; - -Any unused members of this structure should always be initialized to zero -before the structure is used in a function call. Otherwise, the function may -fail and return ERROR_INVALID_PARAMETER. - -You can use the HasOverlappedIoCompleted macro to check whether an -asynchronous I/O operation has completed if GetOverlappedResult is too -cumbersome for your application. - -You can use the CancelIo function to cancel an asynchronous I/O operation. - -HANDLE WINAPI CreateIoCompletionPort( - __in HANDLE FileHandle, - __in_opt HANDLE ExistingCompletionPort, - __in ULONG_PTR CompletionKey, - __in DWORD NumberOfConcurrentThreads -); - -BOOL WINAPI GetQueuedCompletionStatus( - __in HANDLE CompletionPort, - __out LPDWORD lpNumberOfBytes, - __out PULONG_PTR lpCompletionKey, - __out LPOVERLAPPED *lpOverlapped, - __in DWORD dwMilliseconds -); - - -If the function dequeues a completion packet for a successful I/O operation from the completion port, the return value is nonzero. The function stores information in the variables pointed to by the lpNumberOfBytes, lpCompletionKey, and lpOverlapped parameters. - - -BOOL WINAPI GetQueuedCompletionStatusEx( - __in HANDLE CompletionPort, - __out LPOVERLAPPED_ENTRY lpCompletionPortEntries, - __in ULONG ulCount, - __out PULONG ulNumEntriesRemoved, - __in DWORD dwMilliseconds, - __in BOOL fAlertable -); - - - -BOOL PASCAL ConnectEx( - __in SOCKET s, - __in const struct sockaddr *name, - __in int namelen, - __in_opt PVOID lpSendBuffer, - __in DWORD dwSendDataLength, - __out LPDWORD lpdwBytesSent, - __in LPOVERLAPPED lpOverlapped -); - -typedef void (*LPFN_CONNECTEX)( ); - -C++ - -BOOL AcceptEx( - __in SOCKET sListenSocket, - __in SOCKET sAcceptSocket, - __in PVOID lpOutputBuffer, - __in DWORD dwReceiveDataLength, - __in DWORD dwLocalAddressLength, - __in DWORD dwRemoteAddressLength, - __out LPDWORD lpdwBytesReceived, - __in LPOVERLAPPED lpOverlapped -); - -C++ - -BOOL DisconnectEx( - __in SOCKET hSocket, - __in LPOVERLAPPED lpOverlapped, - __in DWORD dwFlags, - __in DWORD reserved -); - -*/ |