Net_Server_Handler::onConnect

Net_Server_Handler::onConnect() – onConnect handler

Synopsis

require_once 'ServerHandler.php';

void Net_Server_Handler::onConnect ( integer $clientId = 0 )

Description

This handler is called, when a new client connects Available in:

  • Net_Server_Sequential

  • Net_Server_Fork

Parameter

integer $clientId

unique id of the client, in Net_Server_Fork, this is always 0

Throws

throws no exceptions thrown

Note

This function can not be called statically.

onClose handler (Previous) onConnectionRefused handler (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.