Socket Class Reference

#include <Socket.h>

Inheritance diagram for Socket:

Inheritance graph
[legend]
Collaboration diagram for Socket:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Socket ()
 Socket (int socket, const struct sockaddr_in &)
virtual ~Socket ()
virtual void connect ()=0
virtual bool isConnected ()
virtual void listen ()=0
virtual bool isListening ()
virtual void close ()
virtual void send (const string &str, int start, int end)
virtual int receive (char *inBuff, int inSize)
virtual int getSocketDescriptor ()
virtual SocketnewSocket (int socket, const struct sockaddr_in &f)=0
virtual void dump (ostream &strm) const
 dumps information about this object

Protected Attributes

int _socket
bool _connected
bool _listening
sockaddr_in _from
bool _addr_set

Constructor & Destructor Documentation

Socket::Socket  )  [inline]
 

Socket::Socket int  socket,
const struct sockaddr_in & 
[inline]
 

virtual Socket::~Socket  )  [inline, virtual]
 

Here is the call graph for this function:


Member Function Documentation

void Socket::close  )  [virtual]
 

Reimplemented in UnixSocket.

virtual void Socket::connect  )  [pure virtual]
 

Implemented in TcpSocket, and UnixSocket.

void Socket::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

Implements BESObj.

Reimplemented in TcpSocket, and UnixSocket.

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

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

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

virtual void Socket::listen  )  [pure virtual]
 

Implemented in TcpSocket, and UnixSocket.

virtual Socket* Socket::newSocket int  socket,
const struct sockaddr_in &  f
[pure virtual]
 

Implemented in TcpSocket, and UnixSocket.

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

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


Member Data Documentation

bool Socket::_addr_set [protected]
 

bool Socket::_connected [protected]
 

struct sockaddr_in Socket::_from [protected]
 

bool Socket::_listening [protected]
 

int Socket::_socket [protected]
 


The documentation for this class was generated from the following files:
Generated on Tue Feb 13 11:16:57 2007 for OPeNDAP Back End Server (BES) by  doxygen 1.4.6