php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
fpm_sockets.h File Reference
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <unistd.h>
#include <fcntl.h>
#include "fpm_worker_pool.h"

Go to the source code of this file.

Macros

#define FPM_BACKLOG_DEFAULT   511
 
#define FPM_ENV_SOCKET_SET_MAX   256
 
#define FPM_ENV_SOCKET_SET_SIZE   128
 

Functions

enum fpm_address_domain fpm_sockets_domain_from_address (char *addr)
 
int fpm_sockets_init_main (void)
 
int fpm_socket_get_listening_queue (int sock, unsigned *cur_lq, unsigned *max_lq)
 
int fpm_socket_unix_test_connect (struct sockaddr_un *sock, size_t socklen)
 

Macro Definition Documentation

◆ FPM_BACKLOG_DEFAULT

#define FPM_BACKLOG_DEFAULT   511

Definition at line 24 of file fpm_sockets.h.

◆ FPM_ENV_SOCKET_SET_MAX

#define FPM_ENV_SOCKET_SET_MAX   256

Definition at line 27 of file fpm_sockets.h.

◆ FPM_ENV_SOCKET_SET_SIZE

#define FPM_ENV_SOCKET_SET_SIZE   128

Definition at line 28 of file fpm_sockets.h.

Function Documentation

◆ fpm_socket_get_listening_queue()

int fpm_socket_get_listening_queue ( int sock,
unsigned * cur_lq,
unsigned * max_lq )

Definition at line 644 of file fpm_sockets.c.

◆ fpm_socket_unix_test_connect()

int fpm_socket_unix_test_connect ( struct sockaddr_un * sock,
size_t socklen )

Definition at line 651 of file fpm_sockets.c.

◆ fpm_sockets_domain_from_address()

enum fpm_address_domain fpm_sockets_domain_from_address ( char * addr)

Definition at line 292 of file fpm_sockets.c.

◆ fpm_sockets_init_main()

int fpm_sockets_init_main ( void )

Definition at line 438 of file fpm_sockets.c.