14#include <netinet/in.h>
21#define UDP_COMM_MAX_SIZE 1024
39 UDPComm(
int port,
const char *hostname);
44 UDPComm(
const char *hostname,
int port,
int localPort,
45 const char *mcastif =
NULL,
int mcastttl = -1);
50 UDPComm(
const char *hostPort,
int localPort,
51 const char *mcastif =
NULL,
int mcastttl = -1);
61 int send(
const void *
buffer,
int numsendBytes);
64 int send(
const char *
string);
70 int getMessagePart(
void *
buf,
int size);
72 int enableBroadcast(
bool state);
82 const char *errorMessage();
86 return (
const char *)msgBuf;
98 static void errorStatus_SW();
99 static bool getError_SW();
100 static void setError_SW(
bool);
109 struct sockaddr_in d_address;
127 unsigned long getIP(
const char *hostname);
130 void setup(
const char *hostname,
int port,
int localPort,
131 const char *mcastif =
NULL,
int mcastttl = -1);
133 int openReceivePort(
int portnumber);
#define UTILEXPORT
Definition: coExport.h:206
#define NULL
Definition: UDPComm.h:19
#define UDP_COMM_MAX_SIZE
Definition: UDPComm.h:21
GLuint buffer
Definition: khronos-glext.h:6606
GLsizeiptr size
Definition: khronos-glext.h:6610
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: khronos-glext.h:8469
GLbitfield GLuint64 timeout
Definition: khronos-glext.h:7882
const char * rawBuffer()
Definition: UDPComm.h:84
int d_rsocket
Definition: UDPComm.h:119
sockaddr_in remote_adr
Definition: UDPComm.h:150
char * currMsgPtr
Definition: UDPComm.h:114
int messageSize()
Definition: UDPComm.h:88
int d_socket
Definition: UDPComm.h:118
int getReceiveSocket()
Definition: UDPComm.h:92
socklen_t rlen
Definition: UDPComm.h:151
int msgSize
Definition: UDPComm.h:115
sockaddr_in & getRemoteAddess()
Definition: UDPComm.h:101
static bool error_SW
Definition: UDPComm.h:148