sot-talos-balance  2.0.5
Collection of dynamic-graph entities aimed at implementing balance control on talos.
CNetwork Class Reference

#include <sot/talos_balance/sdk_qualisys/Network.h>

Public Member Functions

 CNetwork ()
 
 ~CNetwork ()
 
bool Connect (const char *pServerAddr, unsigned short nPort)
 
bool Connected () const
 
bool CreateUDPSocket (unsigned short &nUDPPort, bool bBroadcast=false)
 
void Disconnect ()
 
int GetError () const
 
char * GetErrorString ()
 
unsigned short GetUdpBroadcastServerPort ()
 
unsigned short GetUdpServerPort ()
 
bool IsLocalAddress (unsigned int nAddr) const
 
int Receive (char *rtDataBuff, int nDataBufSize, bool bHeader, int nTimeout, unsigned int *ipAddr=nullptr)
 
bool Send (const char *pSendBuf, int nSize)
 
bool SendUDPBroadcast (const char *pSendBuf, int nSize, short nPort, unsigned int nFilterAddr=0)
 

Detailed Description

Definition at line 12 of file Network.h.

Constructor & Destructor Documentation

◆ CNetwork()

CNetwork ( )

Definition at line 45 of file Network.cpp.

◆ ~CNetwork()

~CNetwork ( )

Definition at line 55 of file Network.cpp.

Member Function Documentation

◆ Connect()

bool Connect ( const char *  pServerAddr,
unsigned short  nPort 
)

Definition at line 79 of file Network.cpp.

◆ Connected()

bool Connected ( ) const

Definition at line 153 of file Network.cpp.

◆ CreateUDPSocket()

bool CreateUDPSocket ( unsigned short &  nUDPPort,
bool  bBroadcast = false 
)

Definition at line 155 of file Network.cpp.

◆ Disconnect()

void Disconnect ( )

Definition at line 141 of file Network.cpp.

◆ GetError()

int GetError ( ) const

Definition at line 434 of file Network.cpp.

◆ GetErrorString()

char * GetErrorString ( )

Definition at line 432 of file Network.cpp.

◆ GetUdpBroadcastServerPort()

unsigned short GetUdpBroadcastServerPort ( )

Definition at line 219 of file Network.cpp.

◆ GetUdpServerPort()

unsigned short GetUdpServerPort ( )

Definition at line 215 of file Network.cpp.

◆ IsLocalAddress()

bool IsLocalAddress ( unsigned int  nAddr) const

Definition at line 436 of file Network.cpp.

◆ Receive()

int Receive ( char *  rtDataBuff,
int  nDataBufSize,
bool  bHeader,
int  nTimeout,
unsigned int *  ipAddr = nullptr 
)

Definition at line 226 of file Network.cpp.

◆ Send()

bool Send ( const char *  pSendBuf,
int  nSize 
)

Definition at line 313 of file Network.cpp.

◆ SendUDPBroadcast()

bool SendUDPBroadcast ( const char *  pSendBuf,
int  nSize,
short  nPort,
unsigned int  nFilterAddr = 0 
)

Definition at line 328 of file Network.cpp.


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