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

Detailed Description

Definition at line 42 of file UnixSocket.h.


Constructor & Destructor Documentation

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

Definition at line 48 of file UnixSocket.h.

Referenced by newSocket().

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

Definition at line 51 of file UnixSocket.h.

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

Definition at line 56 of file UnixSocket.h.


Member Function Documentation

void UnixSocket::connect (  )  [virtual]

Implements Socket.

Definition at line 45 of file UnixSocket.cc.

References Socket::_connected, Socket::_listening, Socket::_socket, and SocketUtilities::create_temp_name().

Here is the call graph for this function:

void UnixSocket::close (  )  [virtual]

Reimplemented from Socket.

Definition at line 213 of file UnixSocket.cc.

References Socket::_connected, Socket::_listening, and Socket::close().

Referenced by ServerApp::terminate().

Here is the call graph for this function:

void UnixSocket::listen (  )  [virtual]

Implements Socket.

Definition at line 139 of file UnixSocket.cc.

References Socket::_connected, Socket::_listening, and Socket::_socket.

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

Implements Socket.

Definition at line 61 of file UnixSocket.h.

References UnixSocket().

Here is the call graph for this function:

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.

Definition at line 241 of file UnixSocket.cc.

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]

Definition at line 63 of file Socket.h.

References Socket::_connected.

Referenced by Connection::isConnected(), SocketListener::listen(), and PPTClient::PPTClient().

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

Definition at line 65 of file Socket.h.

References Socket::_listening.

Referenced by SocketListener::listen().

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

Definition at line 82 of file Socket.cc.

References Socket::_socket.

Referenced by PPTConnection::writeBuffer().

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

Definition at line 97 of file Socket.cc.

References Socket::_socket.

Referenced by PPTConnection::readBuffer().

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

Definition at line 69 of file Socket.h.

References Socket::_socket.

Referenced by SocketListener::listen(), and PPTConnection::readBufferNonBlocking().

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

Definition at line 73 of file Socket.h.

References Socket::_port.

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

Definition at line 77 of file Socket.h.

References Socket::_ip.


Member Data Documentation

int Socket::_socket [protected, inherited]

Definition at line 47 of file Socket.h.

Referenced by Socket::close(), connect(), TcpSocket::connect(), Socket::dump(), Socket::getSocketDescriptor(), listen(), TcpSocket::listen(), Socket::receive(), and Socket::send().

bool Socket::_connected [protected, inherited]

Definition at line 48 of file Socket.h.

Referenced by close(), Socket::close(), connect(), TcpSocket::connect(), Socket::dump(), Socket::isConnected(), listen(), and TcpSocket::listen().

bool Socket::_listening [protected, inherited]

Definition at line 49 of file Socket.h.

Referenced by close(), Socket::close(), connect(), TcpSocket::connect(), Socket::dump(), Socket::isListening(), listen(), and TcpSocket::listen().

string Socket::_ip [protected, inherited]

Definition at line 50 of file Socket.h.

Referenced by Socket::dump(), Socket::getIp(), and Socket::Socket().

unsigned int Socket::_port [protected, inherited]

Definition at line 51 of file Socket.h.

Referenced by Socket::dump(), Socket::getPort(), and Socket::Socket().

bool Socket::_addr_set [protected, inherited]

Definition at line 52 of file Socket.h.

Referenced by Socket::dump().


The documentation for this class was generated from the following files:
Generated on Fri Nov 30 12:15:27 2007 for OPeNDAP Back End Server (BES) by  doxygen 1.5.1