Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Network
Socket
on_connect
Network\Socket::on_connect PHP Method
Socket Class Documentation
Show file
Open project: prggmr/xpspl
on_connect()
public
method
Registers a new handle for new client connections.
public
on_connect
(
callable
$function
) :
object
$function
callable
Function to call on connect.
return
object
public function on_connect($function) { return xp_signal(new SIG_Connect($this), $function); }
Socket
__construct
_connect
get_connections
on_connect
on_disconnect
on_error
on_read
on_write
reconnect
routine