Re: cvs: php-src / configure.in /ext/standard basic_functions.c file.c streamsfuncs.c streamsfuncs.h

From: Date: Sun, 12 Dec 2004 20:05:10 +0000
Subject: Re: cvs: php-src / configure.in /ext/standard basic_functions.c file.c streamsfuncs.c streamsfuncs.h
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-29522@lists.php.net to get a copy of this message
Hello, I have some questions about constants.
+/* {{{ proto array stream_socket_pair(int domain, int type, int protocol) + Creates a pair of indistinguishable socket streams */ +PHP_FUNCTION(stream_socket_pair) +{ + if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lll", + &domain, &type, &protocol)) { + RETURN_FALSE; + } + + if (0 != socketpair(domain, type, protocol, pair)) {
These constants are to be used in 'type': STREAM_SOCK_STREAM STREAM_SOCK_DGRAM STREAM_SOCK_RAW STREAM_SOCK_SEQPACKET STREAM_SOCK_RDM And which constants are defined (if any) for domain and protocol? Don't we need something like: STREAM_PF_UNIX STREAM_PF_INET STREAM_PF_INET6 STREAM_TCP STREAM_UDP STREAM_ICMP Thanks, Nuno

« previous php.cvs (#29522) next »