#include <UnixSocket.h>
Inheritance diagram for UnixSocket:
Public Member Functions | |
UnixSocket (const string &unixSocket) | |
UnixSocket (int socket, const struct sockaddr_in &f) | |
virtual | ~UnixSocket () |
virtual void | connect () |
virtual void | close () |
virtual void | listen () |
virtual Socket * | newSocket (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 | 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 |
Definition at line 42 of file UnixSocket.h.
UnixSocket::UnixSocket | ( | const string & | unixSocket | ) | [inline] |
UnixSocket::UnixSocket | ( | int | socket, | |
const struct sockaddr_in & | f | |||
) | [inline] |
Definition at line 51 of file UnixSocket.h.
virtual UnixSocket::~UnixSocket | ( | ) | [inline, virtual] |
Definition at line 56 of file UnixSocket.h.
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, | |
const struct sockaddr_in & | f | |||
) | [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
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 66 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 68 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 52 of file Socket.cc.
References Socket::_socket.
Referenced by PPTConnection::writeBuffer().
int Socket::receive | ( | char * | inBuff, | |
int | inSize | |||
) | [virtual, inherited] |
Definition at line 67 of file Socket.cc.
References Socket::_socket.
Referenced by PPTConnection::readBuffer().
virtual int Socket::getSocketDescriptor | ( | ) | [inline, virtual, inherited] |
Definition at line 72 of file Socket.h.
References Socket::_socket.
Referenced by SocketListener::listen(), and PPTConnection::readBufferNonBlocking().
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().
struct sockaddr_in Socket::_from [read, protected, inherited] |
bool Socket::_addr_set [protected, inherited] |