OPeNDAP Hyrax Back End Server (BES)
Updated for version 3.8.3
|
#include <TcpSocket.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 () |
get the tcp receive buffer size using getsockopt | |
virtual unsigned int | getSendBufferSize () |
get the tcp send buffer size using getsockopt | |
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) |
TcpSocket (const string &host, int portVal) | |
TcpSocket (int portVal) | |
TcpSocket (int socket, struct sockaddr *addr) | |
virtual | ~TcpSocket () |
Protected Attributes | |
bool | _addr_set |
bool | _connected |
string | _ip |
bool | _listening |
unsigned int | _port |
int | _socket |
Definition at line 42 of file TcpSocket.h.
|
inline |
Definition at line 55 of file TcpSocket.h.
Referenced by newSocket().
|
inline |
Definition at line 63 of file TcpSocket.h.
|
inline |
Definition at line 71 of file TcpSocket.h.
|
inlinevirtual |
Definition at line 80 of file TcpSocket.h.
|
virtual |
is there any wrapper code for unix sockets
Implements Socket.
Definition at line 609 of file TcpSocket.cc.
References Socket::getSocketDescriptor().
|
virtualinherited |
Reimplemented in UnixSocket.
Definition at line 81 of file Socket.cc.
References Socket::_connected, Socket::_listening, and Socket::_socket.
Referenced by PPTClient::closeConnection(), PPTServer::closeConnection(), PPTServer::initConnection(), ServerApp::terminate(), and Socket::~Socket().
|
virtual |
Implements Socket.
Definition at line 68 of file TcpSocket.cc.
References Socket::_connected, Socket::_listening, and Socket::_socket.
|
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 635 of file TcpSocket.cc.
References BESIndent::Indent(), BESIndent::LMarg(), and BESIndent::UnIndent().
Referenced by ServerApp::dump().
|
inlineinherited |
Definition at line 82 of file Socket.h.
References Socket::_ip.
|
inlineinherited |
Definition at line 78 of file Socket.h.
References Socket::_port.
|
virtual |
get the tcp receive buffer size using getsockopt
Get the receive buffer size for this socket descriptor using the getsockopt system function. We do this to maximize the performance of TCP sockets
BESInternalFatalError | if we are unable to get the size of the receive buffer |
Implements Socket.
Definition at line 536 of file TcpSocket.cc.
References Socket::_socket, and BESDEBUG.
|
virtual |
get the tcp send buffer size using getsockopt
Get the send buffer size for this socket descriptor using the getsockopt system function. We do this to maximize the performance of TCP sockets
BESInternalFatalError | if we are unable to get the size of the send buffer |
Implements Socket.
Definition at line 575 of file TcpSocket.cc.
References Socket::_socket, and BESDEBUG.
|
inlinevirtualinherited |
Definition at line 74 of file Socket.h.
References Socket::_socket.
Referenced by SocketListener::accept(), allowConnection(), SocketListener::listen(), and PPTConnection::readBufferNonBlocking().
|
inlinevirtualinherited |
Definition at line 63 of file Socket.h.
References Socket::_connected.
Referenced by Connection::isConnected(), SocketListener::listen(), and PPTClient::PPTClient().
|
inlinevirtualinherited |
Definition at line 65 of file Socket.h.
References Socket::_listening.
Referenced by SocketListener::listen().
|
virtual |
Implements Socket.
Definition at line 285 of file TcpSocket.cc.
References Socket::_connected, Socket::_listening, and Socket::_socket.
|
inlinevirtual |
Implements Socket.
Definition at line 87 of file TcpSocket.h.
References TcpSocket().
|
virtualinherited |
Definition at line 108 of file Socket.cc.
References Socket::_socket.
|
virtualinherited |
Definition at line 93 of file Socket.cc.
References Socket::_socket.
Referenced by PPTConnection::send().
|
protectedinherited |
Definition at line 52 of file Socket.h.
Referenced by Socket::dump().
|
protectedinherited |
Definition at line 48 of file Socket.h.
Referenced by UnixSocket::close(), Socket::close(), UnixSocket::connect(), connect(), Socket::dump(), Socket::isConnected(), UnixSocket::listen(), and listen().
|
protectedinherited |
Definition at line 50 of file Socket.h.
Referenced by Socket::dump(), Socket::getIp(), and Socket::Socket().
|
protectedinherited |
Definition at line 49 of file Socket.h.
Referenced by UnixSocket::close(), Socket::close(), UnixSocket::connect(), connect(), Socket::dump(), Socket::isListening(), UnixSocket::listen(), and listen().
|
protectedinherited |
Definition at line 51 of file Socket.h.
Referenced by Socket::dump(), Socket::getPort(), and Socket::Socket().
|
protectedinherited |
Definition at line 47 of file Socket.h.
Referenced by Socket::close(), UnixSocket::connect(), connect(), Socket::dump(), getRecvBufferSize(), getSendBufferSize(), Socket::getSocketDescriptor(), UnixSocket::listen(), listen(), Socket::receive(), and Socket::send().