bes  Updated for version 3.20.6
Socket Class Referenceabstract
Collaboration diagram for Socket:
Collaboration graph

Public Member Functions

virtual bool allowConnection ()=0
 
virtual void close ()
 
virtual void connect ()=0
 
virtual void dump (std::ostream &strm) const
 dumps information about this object More...
 
std::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 SocketnewSocket (int socket, struct sockaddr *addr)=0
 
virtual int receive (char *inBuff, const int inSize)
 
virtual void send (const std::string &str, int start, int end)
 
 Socket (int socket, struct sockaddr *addr)
 

Protected Attributes

bool _addr_set
 
bool _connected
 
std::string _ip
 
bool _listening
 
unsigned int _port
 
int _socket
 

Detailed Description

Definition at line 42 of file Socket.h.

Member Function Documentation

◆ dump()

void Socket::dump ( std::ostream &  strm) const
virtual

dumps information about this object

Displays the pointer value of this instance

Parameters
strmC++ i/o stream to dump the information to

Implements BESObj.

Reimplemented in TcpSocket, and UnixSocket.

Definition at line 137 of file Socket.cc.


The documentation for this class was generated from the following files: