|
EventHttp::acceptMakes an HTTP server accept connections on the specified socket stream or resource 説明
public
bool EventHttp::accept(
mixed
$socket
)Makes an HTTP server accept connections on the specified socket stream or resource. The socket should be ready to accept connections. Can be called multiple times to accept connections on different sockets.
パラメータ
戻り値
成功した場合に 例例1 EventHttp::accept example
上の例の出力は、 たとえば以下のようになります。 Client: $ nc 127.0.0.1 8091 GET /about HTTP/1.0 Connection: close HTTP/1.0 200 OK Content-Type: text/html; charset=ISO-8859-1 Connection: close Server: 127.0.0.1 8091 127.0.0.2 8092 URI: /about OK 参考
|