Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

OW32::CSocket Class Reference

A socket wrapper. More...

#include <Socket.h>

Inheritance diagram for OW32::CSocket:

OW32::CSecureSocket OW32::CSecureSocketClient OW32::CSecureSocketServer List of all members.

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.

Detailed Description

A socket wrapper.


The documentation for this class was generated from the following file:
Generated on Sun Jun 5 01:29:28 2005 for OW32 by  doxygen 1.3.9.1