SessionSocketManager Class Reference

Public Member Functions

void connectToScene (TUSceneChangeManager *changeMgr)
 
int bindNewPort ()
 
void boundPorts (QVector< int > &o_ports)
 
void unbindPort (int port)
 
int acceptAtPort (int port, int timeoutMS, int msgBufferSize=20)
 
bool clientSocketConnected (int clientSocketId, unsigned long timeoutMS=1000)
 
void removeSocketConnection (int clientSocketId)
 
bool send (int clientSocketId, String &msg, unsigned long timeoutMS=1000)
 
bool recv (int clientSocketId, int timeoutMS)
 
void flushReceivedMsgsBuffer (int clientSocketId)
 
void receivedMsgs (int clientSocketId, QVector< String > &o_messages)
 
void unbindAll ()
 
 ~SessionSocketManager ()
 

Static Public Member Functions

static SessionSocketManagerinstance ()
 

Constructor & Destructor Documentation

◆ ~SessionSocketManager()

SessionSocketManager::~SessionSocketManager ( )

Member Function Documentation

◆ acceptAtPort()

int SessionSocketManager::acceptAtPort ( int  port,
int  timeoutMS,
int  msgBufferSize = 20 
)

◆ bindNewPort()

int SessionSocketManager::bindNewPort ( )

◆ boundPorts()

void SessionSocketManager::boundPorts ( QVector< int > &  o_ports)

◆ clientSocketConnected()

bool SessionSocketManager::clientSocketConnected ( int  clientSocketId,
unsigned long  timeoutMS = 1000 
)

◆ connectToScene()

void SessionSocketManager::connectToScene ( TUSceneChangeManager *  changeMgr)

◆ flushReceivedMsgsBuffer()

void SessionSocketManager::flushReceivedMsgsBuffer ( int  clientSocketId)

◆ instance()

static SessionSocketManager* SessionSocketManager::instance ( )
static

◆ receivedMsgs()

void SessionSocketManager::receivedMsgs ( int  clientSocketId,
QVector< String > &  o_messages 
)

◆ recv()

bool SessionSocketManager::recv ( int  clientSocketId,
int  timeoutMS 
)

◆ removeSocketConnection()

void SessionSocketManager::removeSocketConnection ( int  clientSocketId)

◆ send()

bool SessionSocketManager::send ( int  clientSocketId,
String &  msg,
unsigned long  timeoutMS = 1000 
)

◆ unbindAll()

void SessionSocketManager::unbindAll ( )

◆ unbindPort()

void SessionSocketManager::unbindPort ( int  port)