* structure. You must efree either of these if you request them */
PHPAPI int php_stream_xport_accept(php_stream *stream, php_stream **client,
char **textaddr, int *textaddrlen,
- void **addr, size_t *addrlen,
+ void **addr, socklen_t *addrlen,
struct timeval *timeout,
char **error_text
TSRMLS_DC);
/* Get the name of either the socket or it's peer */
PHPAPI int php_stream_xport_get_name(php_stream *stream, int want_peer,
char **textaddr, int *textaddrlen,
- void **addr, size_t *addrlen
+ void **addr, socklen_t *addrlen
TSRMLS_DC);
/* Structure definition for the set_option interface that the above functions wrap */
php_stream *client;
int returncode;
struct sockaddr *addr;
- size_t addrlen;
+ socklen_t addrlen;
char *textaddr;
long textaddrlen;