Name

ap_psocket — open a socket with automatic cleanup

Synopsis

int ap_psocket(pool *p, int domain, int type, int protocol)

Opens a socket, using socket(), registering a cleanup function to close the socket when the pool is destroyed.