bes Updated for version 3.20.13
UnixSocket Class Reference
Collaboration diagram for UnixSocket:
Collaboration graph

Public Member Functions

virtual bool allowConnection ()
 is there any wrapper code for unix sockets
 
virtual void close ()
 
virtual void connect ()
 
virtual void dump (std::ostream &strm) const
 dumps information about this object
 
std::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 SocketnewSocket (int socket, struct sockaddr *addr)
 
virtual int receive (char *inBuff, const int inSize)
 
virtual void send (const std::string &str, int start, int end)
 
 UnixSocket (const std::string &unixSocket)
 
 UnixSocket (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 UnixSocket.h.

Constructor & Destructor Documentation

◆ UnixSocket() [1/2]

UnixSocket::UnixSocket ( const std::string &  unixSocket)
inline

Definition at line 48 of file UnixSocket.h.

◆ UnixSocket() [2/2]

UnixSocket::UnixSocket ( int  socket,
struct sockaddr *  addr 
)
inline

Definition at line 51 of file UnixSocket.h.

◆ ~UnixSocket()

virtual UnixSocket::~UnixSocket ( )
inlinevirtual

Definition at line 56 of file UnixSocket.h.

Member Function Documentation

◆ allowConnection()

bool UnixSocket::allowConnection ( )
virtual

is there any wrapper code for unix sockets

Implements Socket.

Definition at line 239 of file UnixSocket.cc.

◆ close()

void UnixSocket::close ( )
virtual

Reimplemented from Socket.

Definition at line 209 of file UnixSocket.cc.

◆ connect()

void UnixSocket::connect ( )
virtual

Implements Socket.

Definition at line 51 of file UnixSocket.cc.

◆ dump()

void UnixSocket::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

Reimplemented from Socket.

Definition at line 250 of file UnixSocket.cc.

◆ getIp()

std::string Socket::getIp ( )
inlineinherited

Definition at line 89 of file Socket.h.

◆ getPort()

unsigned int Socket::getPort ( )
inlineinherited

Definition at line 85 of file Socket.h.

◆ getRecvBufferSize()

virtual unsigned int UnixSocket::getRecvBufferSize ( )
inlinevirtual

Implements Socket.

Definition at line 61 of file UnixSocket.h.

◆ getSendBufferSize()

virtual unsigned int UnixSocket::getSendBufferSize ( )
inlinevirtual

Implements Socket.

Definition at line 65 of file UnixSocket.h.

◆ getSocketDescriptor()

virtual int Socket::getSocketDescriptor ( )
inlinevirtualinherited

Definition at line 81 of file Socket.h.

◆ isConnected()

virtual bool Socket::isConnected ( )
inlinevirtualinherited

Definition at line 64 of file Socket.h.

◆ isListening()

virtual bool Socket::isListening ( )
inlinevirtualinherited

Definition at line 69 of file Socket.h.

◆ listen()

void UnixSocket::listen ( )
virtual

Implements Socket.

Definition at line 148 of file UnixSocket.cc.

◆ newSocket()

virtual Socket * UnixSocket::newSocket ( int  socket,
struct sockaddr *  addr 
)
inlinevirtual

Implements Socket.

Definition at line 70 of file UnixSocket.h.

◆ receive()

int Socket::receive ( char *  inBuff,
const int  inSize 
)
virtualinherited

Definition at line 101 of file Socket.cc.

◆ send()

void Socket::send ( const std::string &  str,
int  start,
int  end 
)
virtualinherited

Definition at line 89 of file Socket.cc.

Member Data Documentation

◆ _addr_set

bool Socket::_addr_set
protectedinherited

Definition at line 49 of file Socket.h.

◆ _connected

bool Socket::_connected
protectedinherited

Definition at line 45 of file Socket.h.

◆ _ip

std::string Socket::_ip
protectedinherited

Definition at line 47 of file Socket.h.

◆ _listening

bool Socket::_listening
protectedinherited

Definition at line 46 of file Socket.h.

◆ _port

unsigned int Socket::_port
protectedinherited

Definition at line 48 of file Socket.h.

◆ _socket

int Socket::_socket
protectedinherited

Definition at line 44 of file Socket.h.


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