update : 2015.11.03
php.shukuma.com검색:
|
EventHttp::accept(PECL event >= 1.2.6-beta) EventHttp::accept — Makes an HTTP server accept connections on the specified socket stream or resource 설명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.
인수
반환값
Returns 예제Example #1 EventHttp::accept() example
<?php 위 예제의 출력 예시: 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 참고
|