OPeNDAP Hyrax Back End Server (BES)
Updated for version 3.8.3
|
#include <UnixSocket.h>
Public Member Functions | |
virtual bool | allowConnection () |
is there any wrapper code for unix sockets | |
virtual void | close () |
virtual void | connect () |
virtual void | dump (ostream &strm) const |
dumps information about this object | |
string | getIp () |
unsigned int | getPort () |
virtual unsigned int | getRecvBufferSize () |
virtual unsigned int | getSendBufferSize () |
virtual int | getSocketDescriptor () |
virtual bool | isConnected () |
virtual bool | isListening () |
virtual void | listen () |
virtual Socket * | newSocket (int socket, struct sockaddr *addr) |
virtual int | receive (char *inBuff, const int inSize) |
virtual void | send (const string &str, int start, int end) |
virtual void | sync () |
UnixSocket (const string &unixSocket) | |
UnixSocket (int socket, struct sockaddr *addr) | |
virtual | ~UnixSocket () |
Protected Attributes | |
bool | _addr_set |
bool | _connected |
string | _ip |
bool | _listening |
unsigned int | _port |
int | _socket |
Definition at line 44 of file UnixSocket.h.
UnixSocket::UnixSocket | ( | const string & | unixSocket | ) | [inline] |
Definition at line 50 of file UnixSocket.h.
Referenced by newSocket().
UnixSocket::UnixSocket | ( | int | socket, |
struct sockaddr * | addr | ||
) | [inline] |
Definition at line 53 of file UnixSocket.h.
virtual UnixSocket::~UnixSocket | ( | ) | [inline, virtual] |
Definition at line 58 of file UnixSocket.h.
bool UnixSocket::allowConnection | ( | ) | [virtual] |
is there any wrapper code for unix sockets
Implements Socket.
Definition at line 255 of file UnixSocket.cc.
void UnixSocket::close | ( | ) | [virtual] |
Reimplemented from Socket.
Definition at line 230 of file UnixSocket.cc.
References Socket::_connected, and Socket::_listening.
Referenced by connect(), and ServerApp::terminate().
void UnixSocket::connect | ( | ) | [virtual] |
Implements Socket.
Definition at line 48 of file UnixSocket.cc.
References Socket::_connected, Socket::_listening, Socket::_socket, close(), and SocketUtilities::create_temp_name().
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 267 of file UnixSocket.cc.
References BESIndent::Indent(), BESIndent::LMarg(), and BESIndent::UnIndent().
Referenced by ServerApp::dump().
string Socket::getIp | ( | ) | [inline, inherited] |
Definition at line 78 of file Socket.h.
References Socket::_ip.
unsigned int Socket::getPort | ( | ) | [inline, inherited] |
Definition at line 74 of file Socket.h.
References Socket::_port.
virtual unsigned int UnixSocket::getRecvBufferSize | ( | ) | [inline, virtual] |
virtual unsigned int UnixSocket::getSendBufferSize | ( | ) | [inline, virtual] |
virtual int Socket::getSocketDescriptor | ( | ) | [inline, virtual, inherited] |
Definition at line 70 of file Socket.h.
References Socket::_socket.
Referenced by SocketListener::accept(), TcpSocket::allowConnection(), SocketListener::listen(), and PPTConnection::readBufferNonBlocking().
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 UnixSocket::listen | ( | ) | [virtual] |
Implements Socket.
Definition at line 155 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 72 of file UnixSocket.h.
References UnixSocket().
int Socket::receive | ( | char * | inBuff, |
const int | inSize | ||
) | [virtual, inherited] |
Definition at line 108 of file Socket.cc.
References Socket::_socket.
void Socket::send | ( | const string & | str, |
int | start, | ||
int | end | ||
) | [virtual, inherited] |
Definition at line 93 of file Socket.cc.
References Socket::_socket.
Referenced by PPTConnection::send().
void Socket::sync | ( | ) | [virtual, inherited] |
Definition at line 124 of file Socket.cc.
References Socket::_socket.
Referenced by PPTConnection::send().
bool Socket::_addr_set [protected, inherited] |
Definition at line 52 of file Socket.h.
Referenced by Socket::dump().
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().
string Socket::_ip [protected, inherited] |
Definition at line 50 of file Socket.h.
Referenced by Socket::dump(), Socket::getIp(), and Socket::Socket().
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().
unsigned int Socket::_port [protected, inherited] |
Definition at line 51 of file Socket.h.
Referenced by Socket::dump(), Socket::getPort(), and Socket::Socket().
int Socket::_socket [protected, inherited] |
Definition at line 47 of file Socket.h.
Referenced by Socket::close(), connect(), TcpSocket::connect(), Socket::dump(), TcpSocket::getRecvBufferSize(), TcpSocket::getSendBufferSize(), Socket::getSocketDescriptor(), listen(), TcpSocket::listen(), Socket::receive(), Socket::send(), and Socket::sync().