PHP Class PHPDaemon\BoundSocket\TCP

Author: Vasily Zorin ([email protected])
Inheritance: extends Generic
Exibir arquivo Open project: kakserpom/phpdaemon Class Usage Examples

Protected Properties

Property Type Description
$defaultPort integer Default port
$host string Hostname
$port integer Port

Public Methods

Method Description
bindSocket ( ) : null | boolean Bind the socket
getPort ( ) : integer
setDefaultPort ( $port ) : void Sets default port

Protected Methods

Method Description
onBound ( ) : boolean | null Called when socket is bound

Method Details

bindSocket() public method

Bind the socket
public bindSocket ( ) : null | boolean
return null | boolean Success.

getPort() public method

public getPort ( ) : integer
return integer

onBound() protected method

Called when socket is bound
protected onBound ( ) : boolean | null
return boolean | null Success

setDefaultPort() public method

Sets default port
public setDefaultPort ( $port ) : void
return void

Property Details

$defaultPort protected_oe property

Default port
protected int $defaultPort
return integer

$host protected_oe property

Hostname
protected string $host
return string

$port protected_oe property

Port
protected int $port
return integer