php-internal-docs 8.4.8
Unofficial docs for php/php-src
|
Go to the source code of this file.
Data Structures | |
struct | _php_pollfd |
struct | php_sockaddr_storage |
struct | _php_netstream_data_t |
Typedefs | |
typedef int | php_socket_t |
typedef struct _php_pollfd | php_pollfd |
typedef struct _php_netstream_data_t | php_netstream_data_t |
Functions | |
PHPAPI char * | php_socket_strerror (long err, char *buf, size_t bufsize) |
PHPAPI zend_string * | php_socket_error_str (long err) |
PHPAPI int | php_poll2 (php_pollfd *ufds, unsigned int nfds, int timeout) |
PHPAPI void | _php_emit_fd_setsize_warning (int max_fd) |
PHPAPI int | php_network_getaddresses (const char *host, int socktype, struct sockaddr ***sal, zend_string **error_string) |
PHPAPI void | php_network_freeaddresses (struct sockaddr **sal) |
PHPAPI php_socket_t | php_network_connect_socket_to_host (const char *host, unsigned short port, int socktype, int asynchronous, struct timeval *timeout, zend_string **error_string, int *error_code, const char *bindto, unsigned short bindport, long sockopts) |
PHPAPI int | php_network_connect_socket (php_socket_t sockfd, const struct sockaddr *addr, socklen_t addrlen, int asynchronous, struct timeval *timeout, zend_string **error_string, int *error_code) |
PHPAPI php_socket_t | php_network_bind_socket_to_local_addr (const char *host, unsigned port, int socktype, long sockopts, zend_string **error_string, int *error_code) |
PHPAPI php_socket_t | php_network_accept_incoming (php_socket_t srvsock, zend_string **textaddr, struct sockaddr **addr, socklen_t *addrlen, struct timeval *timeout, zend_string **error_string, int *error_code, int tcp_nodelay) |
PHPAPI int | php_network_get_sock_name (php_socket_t sock, zend_string **textaddr, struct sockaddr **addr, socklen_t *addrlen) |
PHPAPI int | php_network_get_peer_name (php_socket_t sock, zend_string **textaddr, struct sockaddr **addr, socklen_t *addrlen) |
PHPAPI void | php_any_addr (int family, php_sockaddr_storage *addr, unsigned short port) |
PHPAPI socklen_t | php_sockaddr_size (php_sockaddr_storage *addr) |
PHPAPI php_stream * | _php_stream_sock_open_from_socket (php_socket_t socket, const char *persistent_id STREAMS_DC) |
PHPAPI php_stream * | _php_stream_sock_open_host (const char *host, unsigned short port, int socktype, struct timeval *timeout, const char *persistent_id STREAMS_DC) |
PHPAPI void | php_network_populate_name_from_sockaddr (struct sockaddr *sa, socklen_t sl, zend_string **textaddr, struct sockaddr **addr, socklen_t *addrlen) |
PHPAPI zend_result | php_network_parse_network_address_with_port (const char *addr, size_t addrlen, struct sockaddr *sa, socklen_t *sl) |
PHPAPI struct hostent * | php_network_gethostbyname (const char *name) |
PHPAPI zend_result | php_set_sock_blocking (php_socket_t socketd, bool block) |
Variables | |
PHPAPI const php_stream_ops | php_stream_socket_ops |
const php_stream_ops | php_stream_generic_socket_ops |
Definition at line 24 of file php_network.h.
Definition at line 47 of file php_network.h.
#define MAXFQDNLEN 255 |
Definition at line 358 of file php_network.h.
Definition at line 279 of file php_network.h.
Definition at line 54 of file php_network.h.
Definition at line 240 of file php_network.h.
Definition at line 241 of file php_network.h.
Definition at line 239 of file php_network.h.
Definition at line 242 of file php_network.h.
#define PHP_SOCK_CHUNK_SIZE 8192 |
Definition at line 246 of file php_network.h.
#define php_socket_errno | ( | ) |
Definition at line 60 of file php_network.h.
#define PHP_STREAM_IS_SOCKET (&php_stream_socket_ops) |
Definition at line 322 of file php_network.h.
#define php_stream_sock_open_from_socket | ( | socket, | |
persistent ) |
Definition at line 347 of file php_network.h.
#define php_stream_sock_open_from_socket_rel | ( | socket, | |
persistent ) |
Definition at line 351 of file php_network.h.
#define php_stream_sock_open_host | ( | host, | |
port, | |||
socktype, | |||
timeout, | |||
persistent ) |
Definition at line 348 of file php_network.h.
#define php_stream_sock_open_host_rel | ( | host, | |
port, | |||
socktype, | |||
timeout, | |||
persistent ) |
Definition at line 352 of file php_network.h.
#define php_stream_sock_open_unix_rel | ( | path, | |
pathlen, | |||
persistent, | |||
timeval ) |
Definition at line 353 of file php_network.h.
#define PHP_USE_POLL_2_EMULATION 1 |
Definition at line 150 of file php_network.h.
Definition at line 144 of file php_network.h.
#define POLLHUP 0x0010 /* Hung up */ |
Definition at line 145 of file php_network.h.
Definition at line 141 of file php_network.h.
Definition at line 146 of file php_network.h.
Definition at line 143 of file php_network.h.
Definition at line 142 of file php_network.h.
#define SHUT_RD 0 |
Definition at line 86 of file php_network.h.
#define SHUT_RDWR 2 |
Definition at line 88 of file php_network.h.
#define SHUT_WR 1 |
Definition at line 87 of file php_network.h.
Definition at line 30 of file php_network.h.
#define SOCK_CONN_ERR -1 |
Definition at line 109 of file php_network.h.
#define SOCK_ERR -1 |
Definition at line 108 of file php_network.h.
#define SOCK_RECV_ERR -1 |
Definition at line 110 of file php_network.h.
#define STREAM_SOCKOP_IPV6_V6ONLY (1 << 3) |
Definition at line 116 of file php_network.h.
#define STREAM_SOCKOP_IPV6_V6ONLY_ENABLED (1 << 4) |
Definition at line 117 of file php_network.h.
#define STREAM_SOCKOP_NONE (1 << 0) |
Definition at line 113 of file php_network.h.
#define STREAM_SOCKOP_SO_BROADCAST (1 << 2) |
Definition at line 115 of file php_network.h.
#define STREAM_SOCKOP_SO_REUSEPORT (1 << 1) |
Definition at line 114 of file php_network.h.
#define STREAM_SOCKOP_TCP_NODELAY (1 << 5) |
Definition at line 118 of file php_network.h.
typedef struct _php_netstream_data_t php_netstream_data_t |
Definition at line 319 of file php_network.h.
typedef struct _php_pollfd php_pollfd |
typedef int php_socket_t |
Definition at line 100 of file php_network.h.
PHPAPI php_stream * _php_stream_sock_open_from_socket | ( | php_socket_t | socket, |
const char *persistent_id | STREAMS_DC ) |
PHPAPI php_stream * _php_stream_sock_open_host | ( | const char * | host, |
unsigned short | port, | ||
int | socktype, | ||
struct timeval * | timeout, | ||
const char *persistent_id | STREAMS_DC ) |
PHPAPI void php_any_addr | ( | int | family, |
php_sockaddr_storage * | addr, | ||
unsigned short | port ) |
PHPAPI php_socket_t php_network_accept_incoming | ( | php_socket_t | srvsock, |
zend_string ** | textaddr, | ||
struct sockaddr ** | addr, | ||
socklen_t * | addrlen, | ||
struct timeval * | timeout, | ||
zend_string ** | error_string, | ||
int * | error_code, | ||
int | tcp_nodelay ) |
PHPAPI php_socket_t php_network_bind_socket_to_local_addr | ( | const char * | host, |
unsigned | port, | ||
int | socktype, | ||
long | sockopts, | ||
zend_string ** | error_string, | ||
int * | error_code ) |
PHPAPI int php_network_connect_socket | ( | php_socket_t | sockfd, |
const struct sockaddr * | addr, | ||
socklen_t | addrlen, | ||
int | asynchronous, | ||
struct timeval * | timeout, | ||
zend_string ** | error_string, | ||
int * | error_code ) |
PHPAPI php_socket_t php_network_connect_socket_to_host | ( | const char * | host, |
unsigned short | port, | ||
int | socktype, | ||
int | asynchronous, | ||
struct timeval * | timeout, | ||
zend_string ** | error_string, | ||
int * | error_code, | ||
const char * | bindto, | ||
unsigned short | bindport, | ||
long | sockopts ) |
PHPAPI int php_network_get_peer_name | ( | php_socket_t | sock, |
zend_string ** | textaddr, | ||
struct sockaddr ** | addr, | ||
socklen_t * | addrlen ) |
PHPAPI int php_network_get_sock_name | ( | php_socket_t | sock, |
zend_string ** | textaddr, | ||
struct sockaddr ** | addr, | ||
socklen_t * | addrlen ) |
PHPAPI int php_network_getaddresses | ( | const char * | host, |
int | socktype, | ||
struct sockaddr *** | sal, | ||
zend_string ** | error_string ) |
PHPAPI struct hostent * php_network_gethostbyname | ( | const char * | name | ) |
PHPAPI zend_result php_network_parse_network_address_with_port | ( | const char * | addr, |
size_t | addrlen, | ||
struct sockaddr * | sa, | ||
socklen_t * | sl ) |
PHPAPI void php_network_populate_name_from_sockaddr | ( | struct sockaddr * | sa, |
socklen_t | sl, | ||
zend_string ** | textaddr, | ||
struct sockaddr ** | addr, | ||
socklen_t * | addrlen ) |
PHPAPI int php_poll2 | ( | php_pollfd * | ufds, |
unsigned int | nfds, | ||
int | timeout ) |
PHPAPI zend_result php_set_sock_blocking | ( | php_socket_t | socketd, |
bool | block ) |
PHPAPI socklen_t php_sockaddr_size | ( | php_sockaddr_storage * | addr | ) |
PHPAPI zend_string * php_socket_error_str | ( | long | err | ) |
PHPAPI char * php_socket_strerror | ( | long | err, |
char * | buf, | ||
size_t | bufsize ) |
|
extern |
Definition at line 532 of file xp_socket.c.
|
extern |
Definition at line 543 of file xp_socket.c.