update : 2015.11.03
php.shukuma.com검색:
|
EventBufferEvent::connectHost(PECL event >= 1.2.6-beta) EventBufferEvent::connectHost — Connects to a hostname with optionally asyncronous DNS resolving 설명
public
bool
EventBufferEvent::connectHost
(
EventDnsBase
$dns_base
,
string
$hostname
,
int
$port
[,
int
$family
= EventUtil::AF_UNSPEC
] )
Resolves the DNS name hostname, looking for addresses of type
인수
반환값
Returns 예제Example #1 EventBufferEvent::connectHost() example
<?php 위 예제의 출력 예시: Connected. HTTP/1.0 301 Moved Permanently Location: http://www.google.co.uk/ Content-Type: text/html; charset=UTF-8 Date: Sat, 09 Mar 2013 12:21:19 GMT Expires: Mon, 08 Apr 2013 12:21:19 GMT Cache-Control: public, max-age=2592000 Server: gws Content-Length: 221 X-XSS-Protection: 1; mode=block X-Frame-Options: SAMEORIGIN <HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8"> <TITLE>301 Moved</TITLE></HEAD><BODY> <H1>301 Moved</H1> The document has moved <A HREF="http://www.google.co.uk/">here</A>. </BODY></HTML> Closing Done 참고
|