sot-talos-balance
2.0.5
Collection of dynamic-graph entities aimed at implementing balance control on talos.
|
|
Go to the documentation of this file.
5 #define WIN32_LEAN_AND_MEAN
8 #define INVALID_SOCKET -1
16 bool Connect(
const char* pServerAddr,
unsigned short nPort);
19 bool CreateUDPSocket(
unsigned short& nUDPPort,
bool bBroadcast =
false);
20 int Receive(
char* rtDataBuff,
int nDataBufSize,
bool bHeader,
int nTimeout,
21 unsigned int* ipAddr =
nullptr);
22 bool Send(
const char* pSendBuf,
int nSize);
24 unsigned int nFilterAddr = 0);
33 void SetErrorString();
39 SOCKET mUDPBroadcastSocket;
41 unsigned long mLastError;
bool CreateUDPSocket(unsigned short &nUDPPort, bool bBroadcast=false)
bool SendUDPBroadcast(const char *pSendBuf, int nSize, short nPort, unsigned int nFilterAddr=0)
bool IsLocalAddress(unsigned int nAddr) const
bool Send(const char *pSendBuf, int nSize)
int Receive(char *rtDataBuff, int nDataBufSize, bool bHeader, int nTimeout, unsigned int *ipAddr=nullptr)
bool Connect(const char *pServerAddr, unsigned short nPort)
unsigned short GetUdpServerPort()
unsigned short GetUdpBroadcastServerPort()