Documentation

ServerInterface

Table of Contents

close()  : void
Closes the server
getAddress()  : string|null
Returns server address
onConnection()  : void
Callback to be called on new connection
onError()  : void
Callback to be called on error
pause()  : void
Pauses the server
resume()  : void
Resumes the server

Methods

close()

Closes the server

public close() : void
Return values
void

getAddress()

Returns server address

public getAddress() : string|null
Return values
string|null

onConnection()

Callback to be called on new connection

public abstract onConnection(ConnectionInterface $connection) : void
Parameters
$connection : ConnectionInterface
Return values
void

onError()

Callback to be called on error

public abstract onError(Exception $e) : void
Parameters
$e : Exception
Return values
void

pause()

Pauses the server

public pause() : void
Return values
void

resume()

Resumes the server

public resume() : void
Return values
void

Search results