# HG changeset patch # User Giulio Moro # Date 1440020205 -3600 # Node ID fb56681ab1d631a8a33b0fdea6ecfa5a8e198235 # Parent ad8a93cd7c39c1442ee29bc16134e3be2e40a846 Parsing header in udp-server.c diff -r ad8a93cd7c39 -r fb56681ab1d6 resources/network/udp-server.c --- a/resources/network/udp-server.c Tue Aug 18 14:53:16 2015 +0100 +++ b/resources/network/udp-server.c Wed Aug 19 22:36:45 2015 +0100 @@ -47,8 +47,9 @@ n = recvfrom(sock,buf,2048,0,(struct sockaddr *)&from,&fromlen); if (n < 0) error("recvfrom"); printf("Received a datagram of size %d: \n", n); - for(i=0; i