#include <Socket.h>
Inheritance diagram for OW32::CSocket:
Public Member Functions | |
CSocket (int af, int type, int protocol) | |
CSocket (SOCKET s) | |
virtual int | shutdown (int how) |
int | wait_writeable () |
int | wait_readable () |
virtual int | send (const char *buf, int len) |
virtual int | recv (char *buf, int len) |
void | settimeout (__int64 timeout) |
__int64 | gettimeout () |
int | bind (const struct sockaddr *name, int namelen) |
int | bind (CSockAddrIn &sockaddr_in) |
virtual int | close () |
virtual int | connect (const struct sockaddr *name, int namelen) |
virtual int | connect (CSockAddrIn &sockaddr_in) |
virtual int | listen (int backlog=SOMAXCONN) |
virtual SOCKET | accept (sockaddr *addr, int *addrlen) |
virtual SOCKET | accept (CSockAddrIn &sockaddr_in) |
int | setopt (int optname, int value, int level=SOL_SOCKET) |
int | setopt (int optname, bool value, int level=SOL_SOCKET) |
int | setopt (int optname, LINGER value, int level=SOL_SOCKET) |
int | setopt (int optname, char *pValue, int size, int level=SOL_SOCKET) |
int | getopt (int optname, int *pValue, int level=SOL_SOCKET) |
int | getopt (int optname, bool *pValue, int level=SOL_SOCKET) |
int | getopt (int optname, LINGER *pValue, int level=SOL_SOCKET) |
int | getopt (int optname, char *pValue, int *pSize, int level=SOL_SOCKET) |
operator SOCKET () | |
operator HANDLE () | |
SOCKET | Detach () |
void | Attach (SOCKET s) |
Protected Attributes | |
SOCKET | m_socket |
The socket handle. | |
__int64 | m_timeout |
The timeout, if any set. |