3 #include <netinet/in.h>
9 struct timeval stTimeOut;
12 bool isSetPort =
false;
13 bool isSetServer =
false;
14 struct sockaddr_in destinationServer;
17 UdpClient(
int aPort,
const char* aServerName);
19 bool setup(
int aPort,
const char* aServerName);
45 int send(
void* message,
int size);
47 int write(
const char* remoteHostname,
int remotePortNumber,
void* sourceBuffer,
int numBytesToWrite);
48 int waitUntilReady(
bool readyForReading,
int timeoutMsecs);
49 int setSocketBroadcast(
int broadcastEnable);
void setPort(int aPort)
Definition: UdpClient.cpp:37
void cleanup(BelaContext *context, void *userData)
User-defined cleanup function which runs when the program finishes.
Definition: render.cpp:96
bool setup(BelaContext *context, void *userData)
User-defined initialisation function which runs before audio rendering begins.
Definition: render.cpp:51
int send(void *message, int size)
Definition: UdpClient.cpp:55
Definition: UdpClient.h:5
void setServer(const char *aServerName)
Definition: UdpClient.cpp:47