OPeNDAP Hyrax Back End Server (BES)
Updated for version 3.8.3
|
#include <Socket.h>
Public Member Functions | |
virtual bool | allowConnection ()=0 |
virtual void | close () |
virtual void | connect ()=0 |
virtual void | dump (ostream &strm) const |
dumps information about this object | |
string | getIp () |
unsigned int | getPort () |
virtual unsigned int | getRecvBufferSize ()=0 |
virtual unsigned int | getSendBufferSize ()=0 |
virtual int | getSocketDescriptor () |
virtual bool | isConnected () |
virtual bool | isListening () |
virtual void | listen ()=0 |
virtual Socket * | newSocket (int socket, struct sockaddr *addr)=0 |
virtual int | receive (char *inBuff, const int inSize) |
virtual void | send (const string &str, int start, int end) |
Socket () | |
Socket (int socket, struct sockaddr *addr) | |
virtual | ~Socket () |
Protected Attributes | |
bool | _addr_set |
bool | _connected |
string | _ip |
bool | _listening |
unsigned int | _port |
int | _socket |
Socket::Socket | ( | int | socket, |
struct sockaddr * | addr | ||
) |
|
inlinevirtual |
|
pure virtual |
Implemented in TcpSocket, and UnixSocket.
Referenced by PPTServer::initConnection().
|
virtual |
Reimplemented in UnixSocket.
Definition at line 81 of file Socket.cc.
References _connected, _listening, and _socket.
Referenced by PPTClient::closeConnection(), PPTServer::closeConnection(), PPTServer::initConnection(), ServerApp::terminate(), and ~Socket().
|
pure virtual |
Implemented in TcpSocket, and UnixSocket.
Referenced by PPTClient::PPTClient().
|
virtual |
dumps information about this object
Displays the pointer value of this instance
strm | C++ i/o stream to dump the information to |
Implements BESObj.
Reimplemented in TcpSocket, and UnixSocket.
Definition at line 142 of file Socket.cc.
References _addr_set, _connected, _ip, _listening, _port, _socket, BESIndent::Indent(), BESIndent::LMarg(), and BESIndent::UnIndent().
Referenced by SocketListener::dump(), and Connection::dump().
|
pure virtual |
Implemented in TcpSocket, and UnixSocket.
Referenced by PPTConnection::getRecvChunkSize(), and PPTConnection::receive().
|
pure virtual |
Implemented in TcpSocket, and UnixSocket.
Referenced by PPTConnection::getSendChunkSize().
|
inlinevirtual |
Definition at line 74 of file Socket.h.
References _socket.
Referenced by SocketListener::accept(), TcpSocket::allowConnection(), SocketListener::listen(), and PPTConnection::readBufferNonBlocking().
|
inlinevirtual |
Definition at line 63 of file Socket.h.
References _connected.
Referenced by Connection::isConnected(), SocketListener::listen(), and PPTClient::PPTClient().
|
inlinevirtual |
Definition at line 65 of file Socket.h.
References _listening.
Referenced by SocketListener::listen().
|
pure virtual |
Implemented in TcpSocket, and UnixSocket.
Referenced by SocketListener::listen().
|
pure virtual |
Implemented in TcpSocket, and UnixSocket.
Referenced by SocketListener::accept().
|
virtual |
|
virtual |
|
protected |
Definition at line 48 of file Socket.h.
Referenced by UnixSocket::close(), close(), UnixSocket::connect(), TcpSocket::connect(), dump(), isConnected(), UnixSocket::listen(), and TcpSocket::listen().
|
protected |
|
protected |
Definition at line 49 of file Socket.h.
Referenced by UnixSocket::close(), close(), UnixSocket::connect(), TcpSocket::connect(), dump(), isListening(), UnixSocket::listen(), and TcpSocket::listen().
|
protected |
|
protected |
Definition at line 47 of file Socket.h.
Referenced by close(), UnixSocket::connect(), TcpSocket::connect(), dump(), TcpSocket::getRecvBufferSize(), TcpSocket::getSendBufferSize(), getSocketDescriptor(), UnixSocket::listen(), TcpSocket::listen(), receive(), and send().