24 bool myUdpReadBytes(
SOCKET sockfd,
void *buffer,
int maxByteCount,
struct sockaddr_in *sourceStruct,
int *readByteCount);
42 bool myUdpReadString(
SOCKET sockfd,
char *buffer,
int maxCharCount,
struct sockaddr_in *sourceStruct,
int *readCharCount);
SOCKET myUdpClientStartup(const char *serverAddress, const char *serverPort, struct sockaddr_in **serverStruct)
Crea un socket UDP.
Definition: myudp.c:18
int SOCKET
Definition: mylunp.h:8
bool myUdpReadBytes(SOCKET sockfd, void *buffer, int maxByteCount, struct sockaddr_in *sourceStruct, int *readByteCount)
Riceve fino a byteCount byte di dati.
Definition: myudp.c:23
bool myUdpReadString(SOCKET sockfd, char *buffer, int maxCharCount, struct sockaddr_in *sourceStruct, int *readCharCount)
Riceve una stringa.
Definition: myudp.c:47
void myUdpWriteString(SOCKET sockfd, char *string, struct sockaddr_in destStruct)
Invia una stringa.
Definition: myudp.c:61
void myUdpWriteBytes(SOCKET sockfd, void *data, int byteCount, struct sockaddr_in destStruct)
Invia byteCount byte di dati.
Definition: myudp.c:43