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.

Get Apache: The Definitive Guide, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.