« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 124 for sock (0.002 sec.)
例 11684
« ストリームのエラー ストリームラッパーとして登録するクラスの例 » PHP Manual ストリーム 例 検索 例 目次 ストリームラッパーとして登録するクラスの例 例1 file_get_contents() を使って さまざまな場所からデータを取得する <?php /* /home/bar にある ... le.com/form_action.php に対して POST リクエストを送信 * ダミー値を持つ "foo" と "bar" というフォーム要素が含まれます。 */ $sock = fsockopen ( "ssl://secure.example.com" , 443 , $errno , $errstr , 30 ); if (! $sock ) die( " $errstr ( $errno )\n" ); $d ... ata = "foo=" . urlencode ( "Fooの値" ) . "&bar=" . urlencode ( "Barの値" ); fwrite ( $sock , "POST /form_action.php HTTP/1.0\r\n" ); fwrite ( $sock , "Host: secure.example.com\r\n" ); fwrite ( $sock , "Content-typ ... e: application/x-www-form-urlencoded\r\n" ); fwrite ( $sock , "Content-length: " . strlen ( $data ) . "\r\n" ); fwrite ( $sock , "Accept: */*\r\n" ); fwrite ( $sock , "\r\n" ); fwrit ...
https://man.mtool.work/php/8.3/stream.examples.html
例 11622
« ストリームのエラー ストリームラッパーとして登録するクラスの例 » PHP Manual ストリーム 例 検索 例 目次 ストリームラッパーとして登録するクラスの例 例1 file_get_contents() を使って さまざまな場所からデータを取得する <?php /* /home/bar にある ... le.com/form_action.php に対して POST リクエストを送信 * ダミー値を持つ "foo" と "bar" というフォーム要素が含まれます。 */ $sock = fsockopen ( "ssl://secure.example.com" , 443 , $errno , $errstr , 30 ); if (! $sock ) die( " $errstr ( $errno )\n" ); $d ... ata = "foo=" . urlencode ( "Fooの値" ) . "&bar=" . urlencode ( "Barの値" ); fwrite ( $sock , "POST /form_action.php HTTP/1.0\r\n" ); fwrite ( $sock , "Host: secure.example.com\r\n" ); fwrite ( $sock , "Content-typ ... e: application/x-www-form-urlencoded\r\n" ); fwrite ( $sock , "Content-length: " . strlen ( $data ) . "\r\n" ); fwrite ( $sock , "Accept: */*\r\n" ); fwrite ( $sock , "\r\n" ); fwrit ...
https://man.mtool.work/php/8.3/stream.examples.html
例 9677
« 定義済み定数 ソケットのエラー » PHP Manual ソケット 例 検索 例 例1 ソケットの例: 簡易 TCP/IP サーバー この例は、簡単な応答サーバーです。変数 address と port を設定と実行環境に合うように変更してください。 このサーバーに次のようなコマンドで ... so we see what we're getting * as it comes in. */ ob_implicit_flush (); $address = '192.168.1.53' ; $port = 10000 ; if (( $sock = socket_create ( AF_INET , SOCK_STREAM , SOL_TCP )) === false ) { echo "socket_create() failed: reason: " . socket_strerr ... or ( socket_last_error ()) . "\n" ; } if ( socket_bind ( $sock , $address , $port ) === false ) { echo "socket_bind() failed: reason ... : " . socket_strerror ( socket_last_error ( $sock )) . "\n" ; } if ( socket_listen ( $sock , 5 ) === false ) { echo "socket_listen() ...
https://man.mtool.work/php/8.3/sockets.examples.html
例 9615
« 定義済み定数 ソケットのエラー » PHP Manual ソケット 例 検索 例 例1 ソケットの例: 簡易 TCP/IP サーバー この例は、簡単な応答サーバーです。変数 address と port を設定と実行環境に合うように変更してください。 このサーバーに次のようなコマンドで ... so we see what we're getting * as it comes in. */ ob_implicit_flush (); $address = '192.168.1.53' ; $port = 10000 ; if (( $sock = socket_create ( AF_INET , SOCK_STREAM , SOL_TCP )) === false ) { echo "socket_create() failed: reason: " . socket_strerr ... or ( socket_last_error ()) . "\n" ; } if ( socket_bind ( $sock , $address , $port ) === false ) { echo "socket_bind() failed: reason ... : " . socket_strerror ( socket_last_error ( $sock )) . "\n" ; } if ( socket_listen ( $sock , 5 ) === false ) { echo "socket_listen() ...
https://man.mtool.work/php/8.3/sockets.examples.html
ソケットに名前をバインドする 8667
« socket_atmark socket_clear_error » PHP Manual ソケット 関数 ソケットに名前をバインドする 検索 socket_bind (PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8) socket_bind — ソケットに名前をバインドする 説明 function socket_bind ( Socket $socket , string ... $address , int $port = 0 ): bool address で指定した名前を socket で指定したソケットにバインドします。 これは、 socket_connect() あるいは socket_listen() を使用して接続を確立する前に行っ ... ておく必要があります。 パラメータ socket socket_create() で作成した Socket クラスのインスタンス。 address ソケットの種類が AF_INET の場合、 address はドットで 4 ... (例: 127.0.0.1 )の IP アドレス。 ソケットの種類が AF_UNIX の場合、 address は Unix ドメインソケットのパス (例: /tmp/my.sock )。 port (オプション) パラメータ port は AF_INET ソケットにバインドする場合にのみ使用され、 接続を待ち受けるポートを指定 ...
https://man.mtool.work/php/8.3/function.socket-bind.html
ソケットに名前をバインドする 8667
« socket_atmark socket_clear_error » PHP Manual ソケット 関数 ソケットに名前をバインドする 検索 socket_bind (PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8) socket_bind — ソケットに名前をバインドする 説明 function socket_bind ( Socket $socket , string ... $address , int $port = 0 ): bool address で指定した名前を socket で指定したソケットにバインドします。 これは、 socket_connect() あるいは socket_listen() を使用して接続を確立する前に行っ ... ておく必要があります。 パラメータ socket socket_create() で作成した Socket クラスのインスタンス。 address ソケットの種類が AF_INET の場合、 address はドットで 4 ... (例: 127.0.0.1 )の IP アドレス。 ソケットの種類が AF_UNIX の場合、 address は Unix ドメインソケットのパス (例: /tmp/my.sock )。 port (オプション) パラメータ port は AF_INET ソケットにバインドする場合にのみ使用され、 接続を待ち受けるポートを指定 ...
https://man.mtool.work/php/8.3/function.socket-bind.html
接続された、区別できないソケットストリームの組を作成する 8113
« stream_socket_get_name stream_socket_recvfrom » PHP Manual ストリーム 関数 接続された、区別できないソケットストリームの組を作成する 検索 stream_socket_pair (PHP 5 >= 5.1.0, PHP 7, PHP 8) stream_socket_pair — 接続された、区別できないソケッ ... トストリームの組を作成する 説明 function stream_socket_pair ( int $domain , int $type , int $protocol ): array | false stream_socket_pair() は、互いに接続されており区別できない ... in 使用するプロトコルファミリー。 STREAM_PF_INET 、 STREAM_PF_INET6 あるいは STREAM_PF_UNIX type 使用する接続の型。 STREAM_SOCK_DGRAM 、 STREAM_SOCK_RAW 、 STREAM_SOCK_RDM 、 STREAM_SOCK_SEQPACKET あるいは STREAM_SOCK_STREAM protocol 使用するプロトコ ... の一覧 を参照ください。 戻り値 成功した場合に 2 つのソケットリソースの配列、失敗した場合に false を返します。 例 例1 stream_socket_pair() の例 この例では、プロセス間通信に stream_socket_pair() を使用する基本的な方法を示します。 <?php $sockets = stream ...
https://man.mtool.work/php/8.3/function.stream-socket-pair.html
接続された、区別できないソケットストリームの組を作成する 8113
« stream_socket_get_name stream_socket_recvfrom » PHP Manual ストリーム 関数 接続された、区別できないソケットストリームの組を作成する 検索 stream_socket_pair (PHP 5 >= 5.1.0, PHP 7, PHP 8) stream_socket_pair — 接続された、区別できないソケッ ... トストリームの組を作成する 説明 function stream_socket_pair ( int $domain , int $type , int $protocol ): array | false stream_socket_pair() は、互いに接続されており区別できない ... in 使用するプロトコルファミリー。 STREAM_PF_INET 、 STREAM_PF_INET6 あるいは STREAM_PF_UNIX type 使用する接続の型。 STREAM_SOCK_DGRAM 、 STREAM_SOCK_RAW 、 STREAM_SOCK_RDM 、 STREAM_SOCK_SEQPACKET あるいは STREAM_SOCK_STREAM protocol 使用するプロトコ ... の一覧 を参照ください。 戻り値 成功した場合に 2 つのソケットリソースの配列、失敗した場合に false を返します。 例 例1 stream_socket_pair() の例 この例では、プロセス間通信に stream_socket_pair() を使用する基本的な方法を示します。 <?php $sockets = stream ...
https://man.mtool.work/php/8.3/function.stream-socket-pair.html
The Swoole\Event class 7855
« Swoole\Coroutine\Lock::unlock Swoole\Event::add » PHP Manual Swoole The Swoole\Event class 検索 The Swoole\Event class (PECL swoole >= 1.9.0) はじめに The Swoole extension provides low-level interfaces to directly manipulate the underlyin ... g epoll/kqueue/poll/select event loop. It allows adding sockets created by other extensions or PHP's stream/socket extensions to Swoole's EventLoop. 注意 : The Event module is low-lev ... mer::after Deferred execution functions set via Event::defer Periodic callback functions set via Event::cycle Swoole Event Socket Type fd int File descriptors, including Swoole\Client->$sock, Swoole\Process->$pipe, or any other file descriptor (fd). ... stream resource resource Resources created by stream_socket_client/fsockopen. socket resource resource Resources created by socket_create from the sockets extension require the --e ...
https://man.mtool.work/php/8.3/class.swoole-event.html
The Swoole\Event class 7855
« Swoole\Coroutine\Lock::unlock Swoole\Event::add » PHP Manual Swoole The Swoole\Event class 検索 The Swoole\Event class (PECL swoole >= 1.9.0) はじめに The Swoole extension provides low-level interfaces to directly manipulate the underlyin ... g epoll/kqueue/poll/select event loop. It allows adding sockets created by other extensions or PHP's stream/socket extensions to Swoole's EventLoop. 注意 : The Event module is low-lev ... mer::after Deferred execution functions set via Event::defer Periodic callback functions set via Event::cycle Swoole Event Socket Type fd int File descriptors, including Swoole\Client->$sock, Swoole\Process->$pipe, or any other file descriptor (fd). ... stream resource resource Resources created by stream_socket_client/fsockopen. socket resource resource Resources created by socket_create from the sockets extension require the --e ...
https://man.mtool.work/php/8.3/class.swoole-event.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT