|
EventHttp::acceptMakes an HTTP server accept connections on the specified socket stream or resource Beschreibung
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.
Parameter-Liste
Rückgabewerte
Returns BeispieleBeispiel #1 EventHttp::accept example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie: 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 Siehe auch
|