UnixSocket Class Reference

#include <UnixSocket.h>

Inheritance diagram for UnixSocket:

Inheritance graph
[legend]
Collaboration diagram for UnixSocket:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 UnixSocket (const string &unixSocket)
 UnixSocket (int socket, struct sockaddr *addr)
virtual ~UnixSocket ()
virtual void connect ()
virtual void close ()
virtual void listen ()
virtual SocketnewSocket (int socket, struct sockaddr *addr)
virtual void dump (ostream &strm) const
 dumps information about this object
virtual bool isConnected ()
virtual bool isListening ()
virtual void send (const string &str, int start, int end)
virtual int receive (char *inBuff, int inSize)
virtual int getSocketDescriptor ()
unsigned int getPort ()
string getIp ()

Protected Attributes

int _socket
bool _connected
bool _listening
string _ip
unsigned int _port
bool _addr_set

Constructor & Destructor Documentation

UnixSocket::UnixSocket ( const string &  unixSocket  )  [inline]

UnixSocket::UnixSocket ( int  socket,
struct sockaddr *  addr 
) [inline]

virtual UnixSocket::~UnixSocket (  )  [inline, virtual]


Member Function Documentation

void UnixSocket::close (  )  [virtual]

Reimplemented from Socket.

void UnixSocket::connect (  )  [virtual]

Implements Socket.

void UnixSocket::dump ( ostream &  strm  )  const [virtual]

dumps information about this object

Displays the pointer value of this instance

Parameters:
strm C++ i/o stream to dump the information to

Reimplemented from Socket.

string Socket::getIp (  )  [inline, inherited]

unsigned int Socket::getPort (  )  [inline, inherited]

virtual int Socket::getSocketDescriptor (  )  [inline, virtual, inherited]

virtual bool Socket::isConnected (  )  [inline, virtual, inherited]

virtual bool Socket::isListening (  )  [inline, virtual, inherited]

void UnixSocket::listen (  )  [virtual]

Implements Socket.

virtual Socket* UnixSocket::newSocket ( int  socket,
struct sockaddr *  addr 
) [inline, virtual]

Implements Socket.

Here is the call graph for this function:

int Socket::receive ( char *  inBuff,
int  inSize 
) [virtual, inherited]

void Socket::send ( const string &  str,
int  start,
int  end 
) [virtual, inherited]


Member Data Documentation

bool Socket::_addr_set [protected, inherited]

bool Socket::_connected [protected, inherited]

string Socket::_ip [protected, inherited]

bool Socket::_listening [protected, inherited]

unsigned int Socket::_port [protected, inherited]

int Socket::_socket [protected, inherited]


The documentation for this class was generated from the following files:
Generated on Wed Nov 21 12:20:46 2007 for OPeNDAP Back End Server (BES) by  doxygen 1.4.7