« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 8 of about 8 for connectHost (0.004 sec.)
EventBufferEvent::connectHost — Connects to a hostname with optionally asynchro... 12850
EventBufferEvent::connectHost (PECL event >= 1.2.6-beta) EventBufferEvent::connectHost — Connects to a hostname with optionally asynchronous DNS resolving 説明 public function EventBufferEvent::connectHost ( EventDnsBase $dns_base , string ... t_extra library, libevent protocol-specific functionality support including HTTP, DNS, and RPC ). 注意 : EventBufferEvent::connectHost() requires libevent-2.0.3-alpha or greater. パラメータ dns_base Object of EventDnsBase in case if DNS is to be resolved as ... NET6 . See EventUtil constants . 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 EventBufferEvent::connectHost() example <?php /* Read callback */ function readcb ( $bev , $base ) { //$input = $bev->input; //$bev->getInput(); //$pos ... $argv [ 1 ]} \r\n" . "Connection: Close\r\n\r\n" )) { exit( "Failed adding request to output buffer\n" ); } if (! $bev -> connectHost ( $dns_base , $argv [ 1 ], 80 , EventUtil :: AF_UNSPEC )) { exit( "Can't connect to host { $argv [ 1 ]} \n" ); } $base -> ...
https://man.mtool.work/php/8.3/eventbufferevent.connecthost.html
EventBufferEvent::getDnsErrorString — Returns string describing the last failed... 10880
EventBufferEvent::getDnsErrorString (PECL event >= 1.2.6-beta) EventBufferEvent::getDnsErrorString — Returns string describing the last failed DNS lookup attempt 説明 public function EventBufferEvent::getDnsErrorString (): string Returns st ... ring describing the last failed DNS lookup attempt made by EventBufferEvent::connectHost() , or an empty string, if there is no DNS error detected. パラメータ この関数にはパラメータはありません。 戻り値 Returns ... a string describing DNS lookup error, or an empty string for no error. 参考 EventBufferEvent::connectHost() - Connects to a hostname with optionally asynchronous DNS resolving 他のマニュアルの関連ページ Django 3.2.14 Django 4.0. ...
https://man.mtool.work/php/8.3/eventbufferevent.getdnserrorstring.html
EventBufferEvent::connect — Connect buffer event's file descriptor to given add... 8784
EventBufferEvent::connect (PECL event >= 1.2.6-beta) EventBufferEvent::connect — Connect buffer event's file descriptor to given address or UNIX socket 説明 public function EventBufferEvent::connect ( string $addr ): bool Connect buffer eve ... n allocates a new socket and makes it non-blocking internally. To resolve DNS names(asynchronously), use EventBufferEvent::connectHost() method. パラメータ addr Should contain an IP address with optional port number, or a path to UNIX domain socket. Recogni ... tch (); ?> 上の例の出力は、 たとえば以下のようになります。 Received 5 bytes ----- data ---- 5: test 参考 EventBufferEvent::connectHost() - Connects to a hostname with optionally asynchronous DNS resolving 他のマニュアルの関連ページ Python timerfd Python aud ...
https://man.mtool.work/php/8.3/eventbufferevent.connect.html
EventBufferEvent::sslSocket — Creates a new SSL buffer event to send its data o... 8784
EventBufferEvent::sslSocket (PECL event >= 1.2.6-beta) EventBufferEvent::sslSocket — Creates a new SSL buffer event to send its data over an SSL on a socket 説明 public static function EventBufferEvent::sslSocket ( EventBase $base , mixed $ ... it is assumed that the file descriptor for the socket will be assigned later, for instance, by means of EventBufferEvent::connectHost() method. ctx Object of EventSslContext class. state The current state of SSL connection: EventBufferEvent::SSL_OPEN , Eve ...
https://man.mtool.work/php/8.3/eventbufferevent.sslsocket.html
The EventBufferEvent class | PHP 8.3 8657
The EventBufferEvent class (PECL event >= 1.2.6-beta) はじめに Represents Libevent's buffer event. Usually an application wants to perform some amount of data buffering in addition to just responding to events. When we want to write data, f ... er $ output ; /* メソッド */ public function close (): void public function connect ( string $addr ): bool public function connectHost ( EventDnsBase $dns_base , string $hostname , int $port , int $family = EventUtil::AF_UNSPEC ): bool public function __con ... event EventBufferEvent::connect — Connect buffer event's file descriptor to given address or UNIX socket EventBufferEvent::connectHost — Connects to a hostname with optionally asynchronous DNS resolving EventBufferEvent::__construct — Constructs EventBuffer ...
https://man.mtool.work/php/8.3/class.eventbufferevent.html
Event | PHP 8.3 7735
Event はじめに This is an extension to efficiently schedule I/O, time and signal based events using the best I/O notification mechanism available for specific platform. This is a port of libevent to the PHP infrastructure. 注意 : Note, Wind ... event EventBufferEvent::connect — Connect buffer event's file descriptor to given address or UNIX socket EventBufferEvent::connectHost — Connects to a hostname with optionally asynchronous DNS resolving EventBufferEvent::__construct — Constructs EventBuffer ...
https://man.mtool.work/php/8.3/book.event.html
例 | PHP 8.3 7338
例 例1 Simple HTTP client <?php // Read callback function readcb ( $bev , $base ) { //$input = $bev->input; //$bev->getInput(); //$pos = $input->search("TTP"); $pos = $bev -> input -> search ( "TTP" ); while (( $n = $bev -> input -> remove ... $argv [ 1 ]} \r\n" . "Connection: Close\r\n\r\n" )) { exit( "Failed adding request to output buffer\n" ); } if (! $bev -> connectHost ( $dns_base , $argv [ 1 ], 80 , EventUtil :: AF_UNSPEC )) { exit( "Can't connect to host { $argv [ 1 ]} \n" ); } $base -> ...
https://man.mtool.work/php/8.3/event.examples.html
関数・メソッド | PHP 8.3 7211
関数・メソッド マニュアル内の全関数およびメソッドの一覧 a b c d e f g h i j k l m n o p q r s t u v w x y z _ a abs - 絶対値 acos - 逆余弦(アークコサイン) acosh - 逆双曲線余弦(アークハイパボリックコサイン) addcslashes - C 言語と同様にス ... event EventBufferEvent::connect - Connect buffer event's file descriptor to given address or UNIX socket EventBufferEvent::connectHost - Connects to a hostname with optionally asynchronous DNS resolving EventBufferEvent::createPair - Creates two buffer even ...
https://man.mtool.work/php/8.3/indexes.functions.html
PREV 1 NEXT