ap_psocket — open a socket with automatic cleanup
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.
socket()