I figured it out eventually. If anyone is interested:
while ((strcmp (buffer, "QUIT")) != 0) {
result = recvfrom(serverSocket, buffer, sizeof(buffer), 0, (struct sockaddr*)...
Type: Posts; User: Jedimark
I figured it out eventually. If anyone is interested:
while ((strcmp (buffer, "QUIT")) != 0) {
result = recvfrom(serverSocket, buffer, sizeof(buffer), 0, (struct sockaddr*)...
Does anyone know of a solution to my problem?
The part of the code where my client sends data is:
buffer = gets(buffer);
printf("Read in %s\n", buffer);
sendto(clientSocket, buffer,...
Hi, I have a UDP server which a client can send messages to.
I want the UDP server to be able to output the address and the port number of the client that sent the data.
Any idea how this can...