11 #include <sys/types.h>
12 #include <sys/socket.h>
13 #include <netinet/in.h>
14 #include <arpa/inet.h>
27 struct sockaddr_in server;
28 struct timeval stTimeOut;
29 struct timeval stZeroTimeOut;
36 struct sockaddr_in from;
41 bool setup(
int aPort);
43 bool bindToPort(
int aPort);
44 int getBoundPort()
const;
54 int read(
void* destBuffer,
int maxBytesToRead,
bool blockUntilSpecifiedAmountHasArrived);
57 int empty(
int maxCount);
66 int waitUntilReady(
bool readyForReading,
int timeoutMsecs);
67 int getLastRecvPort();
68 const char* getLastRecvAddr();
Definition: UdpServer.h:22
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