| udpread, udpwrite \- read and write UDP packets |
| typedef struct Udphdr Udphdr; |
| uchar raddr[IPaddrlen]; /* remote address and port */ |
| uchar laddr[IPaddrlen]; /* local address and port */ |
| long udpread(int fd, Udphdr *hdr, void *data, long n) |
| long udpwrite(int fd, Udphdr *hdr, void *data, long n) |
| read and write UDP packets from the UDP network connection |
| established on file descriptor |
| bytes of packet body into |
| and returns the number of bytes stored in |
| in a UDP packet with header |
| frames the addresses as local and remote |
| instead of source and destination. |
| filled in for a packet read by |
| to send a response back to the sender of the original packet. |