-/* --- @p_port@ --- *
- *
- * Arguments: @int i@ = address family index to retrieve
- *
- * Returns: Port number used for socket.
- */
-
-unsigned p_port(int i)
-{
- addr a;
- socklen_t sz = sizeof(addr);
-
- if (getsockname(udpsock[i].sf.fd, &a.sa, &sz))
- die(EXIT_FAILURE, "couldn't read port number: %s", strerror(errno));
- return (getport(&a));
-}
-