mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-15 23:35:02 -04:00
Remove long copy-and-paste section full of windows api notes.
svn:r1180
This commit is contained in:
parent
30648529e8
commit
433e2339ca
102
buffer_iocp.c
102
buffer_iocp.c
@ -244,105 +244,3 @@ done:
|
|||||||
return r;
|
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
|
|
||||||
);
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user