\Hazaar\Socket
Server
The socket server class

Creates a socket server that listens on an address and port for incoming connections.

Tags

Since

2.0.0

Summary
Methods Properties Constants
run
No constants
Properties
$master
$master
$maxBufferSize
$maxBufferSize
$running
$running
$sockets
$sockets
Methods
__construct()
__construct($addr, $port, $bufferLength = 2048)

Parameters

$addr

No description

$port

No description

$bufferLength

No description

closed()
closed($client)

Parameters

$client

No description

connected()
connected($client)

Parameters

$client

No description

connecting()
connecting($remote_addr, $remote_port, $local_addr, $local_port)

Parameters

$remote_addr

No description

$remote_port

No description

$local_addr

No description

$local_port

No description

process()
process($message)

Parameters

$message

No description

run()
run($timeout = null)
Server main loop

Parameters

$timeout

No description