Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PosixSocket Class Reference

#include <PosixSocket.h>

Inheritance diagram for PosixSocket::

Socket Socket PosixTCPServerSocket PosixTCPSocket PosixUDPSocket PosixTCPServerSocket PosixTCPSocket PosixUDPSocket TCPServerSocket TCPServerSocket TCPSocket TCPSocket UDPSocket UDPSocket TCPServerSocket TCPServerSocket TCPSocket TCPSocket UDPSocket UDPSocket List of all members.

Public Methods

virtual ~PosixSocket ()
u_short getPort ()
const char * getAddr ()
int setOption (int level, int optname, char *optval=NULL, int optlen=0)
int getOption (int level, int optname, char *optval=NULL, int optlen=0)
int bind (short port, char *address=NULL)
int connect ()

Protected Methods

 PosixSocket (u_short port, const char *addr, u_short range)
int create (int type)
int bind ()
int wait (u_long msec)

Protected Attributes

u_short _port
u_short _range
const char * _addr
SOCKET _sockFD

Constructor & Destructor Documentation

PosixSocket::PosixSocket u_short    port,
const char *    addr,
u_short    range
[protected]
 

Definition at line 6 of file PosixSocket.cpp.

PosixSocket::~PosixSocket   [virtual]
 

Definition at line 14 of file PosixSocket.cpp.


Member Function Documentation

int PosixSocket::bind short    port,
char *    address = NULL
 

Definition at line 97 of file PosixSocket.cpp.

References _sockFD.

int PosixSocket::bind   [protected]
 

Definition at line 77 of file PosixSocket.cpp.

References _port, and _range.

Referenced by PosixUDPSocket::open(), and PosixTCPServerSocket::open().

int PosixSocket::connect  
 

Definition at line 116 of file PosixSocket.cpp.

References _port, and _sockFD.

Referenced by PosixUDPSocket::open(), and PosixTCPSocket::open().

int PosixSocket::create int    type [protected]
 

Definition at line 40 of file PosixSocket.cpp.

References _sockFD.

Referenced by PosixTCPServerSocket::PosixTCPServerSocket(), PosixTCPSocket::PosixTCPSocket(), and PosixUDPSocket::PosixUDPSocket().

const char * PosixSocket::getAddr  
 

Definition at line 31 of file PosixSocket.cpp.

References _addr.

int PosixSocket::getOption int    level,
int    optname,
char *    optval = NULL,
int    optlen = 0
 

Definition at line 62 of file PosixSocket.cpp.

References _sockFD.

u_short PosixSocket::getPort  
 

Definition at line 22 of file PosixSocket.cpp.

References _port.

int PosixSocket::setOption int    level,
int    optname,
char *    optval = NULL,
int    optlen = 0
 

Definition at line 51 of file PosixSocket.cpp.

References _sockFD.

int PosixSocket::wait u_long    msec [protected]
 

Referenced by UDPSocket::recv().


Member Data Documentation

const char* PosixSocket::_addr [protected]
 

Definition at line 13 of file PosixSocket.h.

Referenced by getAddr(), and PosixUDPSocket::open().

u_short PosixSocket::_port [protected]
 

Definition at line 11 of file PosixSocket.h.

Referenced by bind(), connect(), getPort(), and PosixUDPSocket::open().

u_short PosixSocket::_range [protected]
 

Definition at line 12 of file PosixSocket.h.

Referenced by bind().

SOCKET PosixSocket::_sockFD [protected]
 

Definition at line 14 of file PosixSocket.h.

Referenced by PosixTCPServerSocket::accept(), bind(), Socket::close(), connect(), create(), getOption(), PosixTCPServerSocket::listen(), PosixUDPSocket::open(), PosixTCPSocket::open(), PosixTCPServerSocket::open(), PosixTCPSocket::read(), PosixTCPSocket::readline(), UDPSocket::recv(), Socket::select(), UDPSocket::send(), setOption(), PosixTCPSocket::shutdown(), and PosixTCPSocket::write().


The documentation for this class was generated from the following files:
Generated on Mon Oct 7 09:33:36 2002 for Gaia by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001