|
PHP5中文手册
socket_create_pair(PHP 4 >= 4.0.7, PHP 5) socket_create_pair — Creates a pair of indistinguishable sockets and stores them in an array 说明
bool socket_create_pair
( int $domain
, int $type
, int $protocol
, array &$fd
)
socket_create_pair() creates two connected and indistinguishable sockets, and stores them in fd . This function is commonly used in IPC (InterProcess Communication). 参数
返回值如果成功则返回 TRUE,失败则返回 FALSE。 范例
Example#1 socket_create_pair() example
<?php
Example#2 socket_create_pair() IPC example
<?php |