PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

EventUtil::setSocketOption - Sets socket options | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

EventUtil::setSocketOption

(PECL event >= 1.6.0)

EventUtil::setSocketOptionSets socket options

説明

public static bool EventUtil::setSocketOption ( mixed $socket , int $level , int $optname , mixed $optval )

Sets socket options.

パラメータ

socket

Socket resource, stream, or numeric file descriptor associated with the socket.

level

One of EventUtil::SOL_* constants. Specifies the protocol level at which the option resides. For example, to retrieve options at the socket level, a level parameter of EventUtil::SOL_SOCKET would be used. Other levels, such as TCP, can be used by specifying the protocol number of that level. Protocol numbers can be found by using the getprotobyname() function. See EventUtil constants .

optname

Option name(type). Has the same meaning as corresponding parameter of socket_get_option() function. See EventUtil constants .

optval

Accepts the same values as optval parameter of the socket_get_option() function.

返り値

Returns TRUE on success. Otherwise FALSE.

参考


忘却曲線を使ってこの知識を確実に記憶に残す

フォーラムで「EventUtil::setSocketOption - Sets socket options」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | EventUtil::setSocketOption - Sets socket options」をGoogle検索
copyright © 1997-2024 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: