version 1.1, 2012/02/21 23:48:05
|
version 1.1.1.2, 2012/05/29 12:34:35
|
Line 148 static const char *php_gai_strerror(int code)
|
Line 148 static const char *php_gai_strerror(int code)
|
|
|
/* {{{ php_network_freeaddresses |
/* {{{ php_network_freeaddresses |
*/ |
*/ |
static void php_network_freeaddresses(struct sockaddr **sal) | PHPAPI void php_network_freeaddresses(struct sockaddr **sal) |
{ |
{ |
struct sockaddr **sap; |
struct sockaddr **sap; |
|
|
Line 163 static void php_network_freeaddresses(struct sockaddr
|
Line 163 static void php_network_freeaddresses(struct sockaddr
|
/* {{{ php_network_getaddresses |
/* {{{ php_network_getaddresses |
* Returns number of addresses, 0 for none/error |
* Returns number of addresses, 0 for none/error |
*/ |
*/ |
static int php_network_getaddresses(const char *host, int socktype, struct sockaddr ***sal, char **error_string TSRMLS_DC) | PHPAPI int php_network_getaddresses(const char *host, int socktype, struct sockaddr ***sal, char **error_string TSRMLS_DC) |
{ |
{ |
struct sockaddr **sap; |
struct sockaddr **sap; |
int n; |
int n; |
Line 1058 PHPAPI php_stream *_php_stream_sock_open_host(const ch
|
Line 1058 PHPAPI php_stream *_php_stream_sock_open_host(const ch
|
|
|
reslen = spprintf(&res, 0, "tcp://%s:%d", host, port); |
reslen = spprintf(&res, 0, "tcp://%s:%d", host, port); |
|
|
stream = php_stream_xport_create(res, reslen, ENFORCE_SAFE_MODE | REPORT_ERRORS, | stream = php_stream_xport_create(res, reslen, REPORT_ERRORS, |
STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT, persistent_id, timeout, NULL, NULL, NULL); |
STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT, persistent_id, timeout, NULL, NULL, NULL); |
|
|
efree(res); |
efree(res); |