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, struct sockaddr *addr)
virtual ~TcpSocket ()
virtual void connect ()
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 close ()
virtual void send (const string &str, int start, int end)
virtual int receive (char *inBuff, int inSize)
virtual void sync ()
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

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

Referenced by newSocket().

TcpSocket::TcpSocket ( int  portVal  )  [inline]

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

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


Member Function Documentation

void TcpSocket::connect (  )  [virtual]

void TcpSocket::listen (  )  [virtual]

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

Implements Socket.

References TcpSocket().

Here is the call graph for this function:

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.

References Socket::dump(), BESIndent::Indent(), BESIndent::LMarg(), and BESIndent::UnIndent().

Referenced by ServerApp::dump().

Here is the call graph for this function:

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

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

References Socket::_listening.

Referenced by SocketListener::listen().

void Socket::close (  )  [virtual, inherited]

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

References Socket::_socket.

Referenced by PPTConnection::send().

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

References Socket::_socket.

Referenced by PPTConnection::readBuffer().

void Socket::sync (  )  [virtual, inherited]

References Socket::_socket.

Referenced by PPTConnection::send().

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

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

References Socket::_port.

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

References Socket::_ip.


Member Data Documentation

int Socket::_socket [protected, inherited]

bool Socket::_connected [protected, inherited]

bool Socket::_listening [protected, inherited]

string Socket::_ip [protected, inherited]

unsigned int Socket::_port [protected, inherited]

bool Socket::_addr_set [protected, inherited]

Referenced by Socket::dump().


The documentation for this class was generated from the following files:

Generated on Wed Sep 24 12:27:10 2008 for OPeNDAP Back End Server (BES) by  doxygen 1.5.6