TcpSocket Class Reference

#include <TcpSocket.h>

Inheritance diagram for TcpSocket:

Inheritance graph
[legend]
Collaboration diagram for TcpSocket:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TcpSocket (const string &host, int portVal)
 TcpSocket (int portVal)
 TcpSocket (int socket, const struct sockaddr_in &f)
virtual ~TcpSocket ()
virtual void connect ()
virtual void listen ()
virtual SocketnewSocket (int socket, const struct sockaddr_in &f)
virtual void dump (ostream &strm) const
 dumps information about this object
virtual bool isConnected ()
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 ()

Protected Attributes

int _socket
bool _connected
bool _listening
sockaddr_in _from
bool _addr_set

Constructor & Destructor Documentation

TcpSocket::TcpSocket const string &  host,
int  portVal
[inline]
 

TcpSocket::TcpSocket int  portVal  )  [inline]
 

TcpSocket::TcpSocket int  socket,
const struct sockaddr_in &  f
[inline]
 

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


Member Function Documentation

void Socket::close  )  [virtual, inherited]
 

Reimplemented in UnixSocket.

void TcpSocket::connect  )  [virtual]
 

Implements Socket.

void TcpSocket::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.

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

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

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

void TcpSocket::listen  )  [virtual]
 

Implements Socket.

virtual Socket* TcpSocket::newSocket int  socket,
const struct sockaddr_in &  f
[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]
 

struct sockaddr_in Socket::_from [protected, inherited]
 

bool Socket::_listening [protected, inherited]
 

int Socket::_socket [protected, inherited]
 


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