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 &io, ChSocket &s)

The documentation for this class was generated from the following files:
  • D:/W/B/src/chrono-9.0.1/src/chrono/utils/ChSocket.h
  • D:/W/B/src/chrono-9.0.1/src/chrono/utils/ChSocket.cpp