#include <AsyncSocket.h>
Inheritance diagram for OW32::CAsyncIoCompletionSocket:
Public Member Functions | |
CAsyncIoCompletionSocket (CAsyncSocketCallback *pCallback, SOCKET s) | |
Construct a new IOCP socket. | |
CAsyncIoCompletionSocket (CAsyncSocketCallback *pCallback) | |
Construct a new uninitialised IOCP socket. | |
virtual | ~CAsyncIoCompletionSocket () |
Destructor cleaning up. | |
bool | associateWithIoCompletionPort (HANDLE hCompletionPort) |
Associate the socket with the given IOCP. | |
virtual int | close () |
Close the encapsulated socket handle. | |
virtual int | connect (const struct sockaddr *name, int namelen) |
Connect to a remote server (stream) or set a default outgoing address for send (datagram). | |
virtual int | connect (CSockAddrIn &sockaddr_in) |
Connect to a remote server (stream) or set a default outgoing address for send (datagram). | |
virtual int | shutdown (int how) |
Shutdown the socket. | |
virtual void | setTimeout (DWORD timeout) |
Set the timeout for the socket. | |
virtual int | recv (char *buf, int len) |
Asynchronous recv. | |
virtual int | send (const char *buf, int len) |
Asynchronous send. | |
virtual int | sendv (WSABUF *bufs, DWORD nbufs) |
Asynchronous vector send. | |
virtual int | transmitFile (HANDLE hFile, DWORD nNumberOfBytesToWrite, DWORD nNumberOfBytesPerSend, LPTRANSMIT_FILE_BUFFERS lpTransmitBuffers, DWORD dwFlags) |
Asynchronous transmitFile. | |
void | expectNotification () |
Add an outstanding notification. | |
void | receivedNotification () |
Notify the socket of a completed notification. | |
Friends | |
LRESULT CALLBACK | SocketNotifyWndProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) |
|
Construct a new IOCP socket.
|
|
Construct a new uninitialised IOCP socket.
|
|
Associate the socket with the given IOCP.
|
|
Close the encapsulated socket handle.
Reimplemented from OW32::CAsyncSocketBase. |
|
Connect to a remote server (stream) or set a default outgoing address for send (datagram).
Reimplemented from OW32::CAsyncSocketBase. |
|
Connect to a remote server (stream) or set a default outgoing address for send (datagram).
Reimplemented from OW32::CAsyncSocketBase. |
|
Add an outstanding notification. May be used for piggybacking the lifetime of other operations on the socket. |
|
Asynchronous recv. onReadCompletion will be called when the read completes.
Implements OW32::CAsyncSocketBase. |
|
Asynchronous send. onSendCompletion will be called when the send completes.
Implements OW32::CAsyncSocketBase. |
|
Asynchronous vector send. onSendCompletion will be called when the send completes.
Reimplemented from OW32::CAsyncSocketBase. |
|
Set the timeout for the socket.
Reimplemented from OW32::CAsyncSocketBase. |
|
Shutdown the socket.
Reimplemented from OW32::CAsyncSocketBase. |
|
Asynchronous transmitFile. onTransmitFileCompletion will be called when the send completes.
Reimplemented from OW32::CAsyncSocketBase. |