« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 2 of about 2 for strtwo (0.001 sec.)
区別できないソケットの組を作成し、配列に保存する 9357
« socket_create_listen socket_export_stream » PHP Manual ソケット 関数 区別できないソケットの組を作成し、配列に保存する 検索 socket_create_pair (PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8) socket_create_pair — 区別できないソケットの組を作成し、配列 ... ose ( $sockets [ 1 ]); ?> 例2 socket_create_pair() での IPC の例 <?php $ary = array(); $strone = 'Message From Parent.' ; $strtwo = 'Message From Child.' ; if ( socket_create_pair ( AF_UNIX , SOCK_STREAM , 0 , $ary ) === false ) { echo "socket_create_p ... write() failed. Reason: " . socket_strerror ( socket_last_error ( $ary [ 1 ])); } if ( socket_read ( $ary [ 1 ], strlen ( $strtwo ), PHP_BINARY_READ ) == $strtwo ) { echo "Received $strtwo \n" ; } socket_close ( $ary [ 1 ]); } else { /* 子プロセス */ s ... ocket_close ( $ary [ 1 ]); if ( socket_write ( $ary [ 0 ], $strtwo , strlen ( $strtwo )) === false ) { echo "socket_write() failed. Reason: " . socket_strerror ( socket_last_error ( $ary [ ...
https://man.mtool.work/php/8.3/function.socket-create-pair.html
区別できないソケットの組を作成し、配列に保存する 9357
« socket_create_listen socket_export_stream » PHP Manual ソケット 関数 区別できないソケットの組を作成し、配列に保存する 検索 socket_create_pair (PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8) socket_create_pair — 区別できないソケットの組を作成し、配列 ... ose ( $sockets [ 1 ]); ?> 例2 socket_create_pair() での IPC の例 <?php $ary = array(); $strone = 'Message From Parent.' ; $strtwo = 'Message From Child.' ; if ( socket_create_pair ( AF_UNIX , SOCK_STREAM , 0 , $ary ) === false ) { echo "socket_create_p ... write() failed. Reason: " . socket_strerror ( socket_last_error ( $ary [ 1 ])); } if ( socket_read ( $ary [ 1 ], strlen ( $strtwo ), PHP_BINARY_READ ) == $strtwo ) { echo "Received $strtwo \n" ; } socket_close ( $ary [ 1 ]); } else { /* 子プロセス */ s ... ocket_close ( $ary [ 1 ]); if ( socket_write ( $ary [ 0 ], $strtwo , strlen ( $strtwo )) === false ) { echo "socket_write() failed. Reason: " . socket_strerror ( socket_last_error ( $ary [ ...
https://man.mtool.work/php/8.3/function.socket-create-pair.html
PREV 1 NEXT