|
php-internal-docs 8.4.8
Unofficial docs for php/php-src
|
Go to the source code of this file.
Data Structures | |
| struct | _php_stream_xport_param |
| struct | _php_stream_xport_crypto_param |
Macros | |
| #define | STREAM_XPORT_CLIENT 0 |
| #define | STREAM_XPORT_SERVER 1 |
| #define | STREAM_XPORT_CONNECT 2 |
| #define | STREAM_XPORT_BIND 4 |
| #define | STREAM_XPORT_LISTEN 8 |
| #define | STREAM_XPORT_CONNECT_ASYNC 16 |
| #define | php_stream_xport_create(name, namelen, options, flags, persistent_id, timeout, context, estr, ecode) |
Typedefs | |
| typedef php_stream * | php_stream_transport_factory_func(const char *proto, size_t protolen, const char *resourcename, size_t resourcenamelen, const char *persistent_id, int options, int flags, struct timeval *timeout, php_stream_context *context STREAMS_DC) |
| typedef php_stream_transport_factory_func * | php_stream_transport_factory |
| typedef struct _php_stream_xport_param | php_stream_xport_param |
| typedef struct _php_stream_xport_crypto_param | php_stream_xport_crypto_param |
Variables | |
| PHPAPI php_stream_transport_factory_func | php_stream_generic_socket_factory |
| #define php_stream_xport_create | ( | name, | |
| namelen, | |||
| options, | |||
| flags, | |||
| persistent_id, | |||
| timeout, | |||
| context, | |||
| estr, | |||
| ecode ) |
Definition at line 54 of file php_stream_transport.h.
| #define STREAM_XPORT_BIND 4 |
Definition at line 41 of file php_stream_transport.h.
| #define STREAM_XPORT_CLIENT 0 |
Definition at line 37 of file php_stream_transport.h.
| #define STREAM_XPORT_CONNECT 2 |
Definition at line 40 of file php_stream_transport.h.
| #define STREAM_XPORT_CONNECT_ASYNC 16 |
Definition at line 43 of file php_stream_transport.h.
| #define STREAM_XPORT_LISTEN 8 |
Definition at line 42 of file php_stream_transport.h.
| #define STREAM_XPORT_SERVER 1 |
Definition at line 38 of file php_stream_transport.h.
Definition at line 31 of file php_stream_transport.h.
| typedef php_stream * php_stream_transport_factory_func(const char *proto, size_t protolen, const char *resourcename, size_t resourcenamelen, const char *persistent_id, int options, int flags, struct timeval *timeout, php_stream_context *context STREAMS_DC) |
Definition at line 26 of file php_stream_transport.h.
| typedef struct _php_stream_xport_crypto_param php_stream_xport_crypto_param |
| typedef struct _php_stream_xport_param php_stream_xport_param |
Definition at line 164 of file php_stream_transport.h.
| Enumerator | |
|---|---|
| STREAM_OOB | |
| STREAM_PEEK | |
Definition at line 93 of file php_stream_transport.h.
| enum stream_shutdown_t |
| Enumerator | |
|---|---|
| STREAM_SHUT_RD | |
| STREAM_SHUT_WR | |
| STREAM_SHUT_RDWR | |
Definition at line 109 of file php_stream_transport.h.
| PHPAPI php_stream * _php_stream_xport_create | ( | const char * | name, |
| size_t | namelen, | ||
| int | options, | ||
| int | flags, | ||
| const char * | persistent_id, | ||
| struct timeval * | timeout, | ||
| php_stream_context * | context, | ||
| zend_string ** | error_string, | ||
| int *error_code | STREAMS_DC ) |
Definition at line 52 of file transports.c.
| PHPAPI int php_stream_xport_accept | ( | php_stream * | stream, |
| php_stream ** | client, | ||
| zend_string ** | textaddr, | ||
| void ** | addr, | ||
| socklen_t * | addrlen, | ||
| struct timeval * | timeout, | ||
| zend_string ** | error_text ) |
Definition at line 289 of file transports.c.
| PHPAPI int php_stream_xport_bind | ( | php_stream * | stream, |
| const char * | name, | ||
| size_t | namelen, | ||
| zend_string ** | error_text ) |
Definition at line 201 of file transports.c.
| PHPAPI int php_stream_xport_connect | ( | php_stream * | stream, |
| const char * | name, | ||
| size_t | namelen, | ||
| int | asynchronous, | ||
| struct timeval * | timeout, | ||
| zend_string ** | error_text, | ||
| int * | error_code ) |
Definition at line 229 of file transports.c.
| PHPAPI int php_stream_xport_crypto_enable | ( | php_stream * | stream, |
| int | activate ) |
Definition at line 378 of file transports.c.
| PHPAPI int php_stream_xport_crypto_setup | ( | php_stream * | stream, |
| php_stream_xport_crypt_method_t | crypto_method, | ||
| php_stream * | session_stream ) |
Definition at line 357 of file transports.c.
Definition at line 23 of file transports.c.
| PHPAPI int php_stream_xport_get_name | ( | php_stream * | stream, |
| int | want_peer, | ||
| zend_string ** | textaddr, | ||
| void ** | addr, | ||
| socklen_t * | addrlen ) |
Definition at line 327 of file transports.c.
| PHPAPI int php_stream_xport_listen | ( | php_stream * | stream, |
| int | backlog, | ||
| zend_string ** | error_text ) |
Definition at line 265 of file transports.c.
| PHPAPI int php_stream_xport_recvfrom | ( | php_stream * | stream, |
| char * | buf, | ||
| size_t | buflen, | ||
| int | flags, | ||
| void ** | addr, | ||
| socklen_t * | addrlen, | ||
| zend_string ** | textaddr ) |
Definition at line 400 of file transports.c.
| PHPAPI int php_stream_xport_register | ( | const char * | protocol, |
| php_stream_transport_factory | factory ) |
Definition at line 28 of file transports.c.
| PHPAPI int php_stream_xport_sendto | ( | php_stream * | stream, |
| const char * | buf, | ||
| size_t | buflen, | ||
| int | flags, | ||
| void * | addr, | ||
| socklen_t | addrlen ) |
Definition at line 469 of file transports.c.
| PHPAPI int php_stream_xport_shutdown | ( | php_stream * | stream, |
| stream_shutdown_t | how ) |
Definition at line 509 of file transports.c.
| PHPAPI int php_stream_xport_unregister | ( | const char * | protocol | ) |
Definition at line 37 of file transports.c.
| PHPAPI php_stream_transport_factory_func php_stream_generic_socket_factory |
Definition at line 215 of file php_stream_transport.h.