Net_Socket::getStatus()

Net_Socket::getStatus() – 接続に関する情報を取得する

Synopsis

require_once 'Net/Socket.php';

array Net_Socket::getStatus ( )

Description

現在の接続についての情報を返します。

Return value

array - 配列形式のデータ、あるいは PEAR_Error

配列の構造は以下のとおり:

  • boolean 'timed_out' - データを待っているソケットのタイムアウト

  • boolean 'blocked' - ブロッキングモード

  • boolean 'eof' - EOF に達したかどうかを示す

  • integer 'unread_bytes' - ソケットバッファに残っているバイト数

Throws

Possible PEAR_Error values
エラー番号 エラーメッセージ 原因 対応方法
NULL "not connected" 接続が確立されていません。 まず接続を確立しなければなりません( Net_Socket::connect())。

Note

This function can not be called statically.