previousNet_Server_Handler::onIdle (Previous) (Next) Net_Server_Handler::onShutdownnext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

Net_Server_Handler::onReceiveData

Net_Server_Handler::onReceiveData() – onReceiveData handler

Synopsis

require_once 'ServerHandler.php';

void Net_Server_Handler::onReceiveData ( integer $clientId = 0 , string $data = "" )

Description

This handler is called, when a client sends data to the server Available in:

  • Net_Server_Sequential

  • Net_Server_Fork

Parameter

integer $clientId

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

string $data

data that the client sent

Throws

throws no exceptions thrown

Note

This function can not be called statically.

previousNet_Server_Handler::onIdle (Previous) (Next) Net_Server_Handler::onShutdownnext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.