|
EventHttp::acceptMakes an HTTP server accept connections on the specified socket stream or resource Description
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.
Parameters
Return Values
Returns ExamplesExample #1 EventHttp::accept example
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
|