4 #include <netinet/in.h>
6 #include <sys/socket.h>
13 Swift s = socketSwift();
14 struct sockaddr_in si_other;
15 socklen_t slen = sizeof(si_other);
19 recvfromSwift(s,buf,100,0,(struct sockaddr *)&si_other,&slen);
21 printf("Received packet from %s:%d\nData: %s\n\n",
22 inet_ntoa(si_other.sin_addr), ntohs(si_other.sin_port), buf);