Allocating a datagram socket
See
Allocating sockets in an iterative server program
.
Parent topic:
Designing a program to use datagram sockets