Description

Base class for sockets. Sockets have at least an ID and a port.

#include <ChSocket.h>

Inheritance diagram for chrono::utils::ChSocket:

Public Member Functions

 ChSocket (int)
 
void setDebug (int)
 
void setReuseAddr (int)
 
void setKeepAlive (int)
 
void setLingerOnOff (bool)
 
void setLingerSeconds (int)
 
void setSocketBlocking (int)
 
void setSendBufSize (int)
 
void setReceiveBufSize (int)
 
int getDebug ()
 
int getReuseAddr ()
 
int getKeepAlive ()
 
int getSendBufSize ()
 
int getReceiveBufSize ()
 
int getSocketBlocking ()
 
int getLingerSeconds ()
 
bool getLingerOnOff ()
 
int getSocketId ()
 
int getPortNumber ()
 

Protected Member Functions

void setSocketId (int socketFd)
 

Protected Attributes

int portNumber
 
int socketId
 
int blocking
 
int bindFlag
 
struct sockaddr_in clientAddr
 

Friends

std::ostream & operator<< (std::ostream &, ChSocket &)
 

The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono/utils/ChSocket.h
  • /builds/uwsbel/chrono/src/chrono/utils/ChSocket.cpp