PHP » GoLang |
login |
register |
about
|
GoLang EventHttp::accept
request it (417)
GoLang replacement for PHP's EventHttp::accept
[edit | history]
EventHttp::accept(PECL event >= 1.2.6-beta) EventHttp::accept — Makes an HTTP server accept connections on the specified socket stream or resource DescriptionMakes 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.
Parameters
Return Values
Returns ExamplesExample #1 EventHttp::accept() example
<?php The above example will output something similar to: 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 See Also
|
more
Recently updated
more
Most requested
more
Last requests
|