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


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to