PHP Class PHPDaemon\BoundSocket\Generic

Author: Zorin Vasily ([email protected])
Inheritance: use trait PHPDaemon\Traits\ClassWatchdog
Afficher le fichier Open project: kakserpom/phpdaemon

Protected Properties

Свойство Type Description
$allowselfsigned boolean Allow self-signed?
$cafile string CA file
$certfile string Certificate file
$ctx mixed Context
$ctxname string Context name
$enabled boolean Enabled?
$erroneous boolean Erroneous?
$ev EventListener\Event Event
$fd mixed File descriptor
$listenerMode boolean Listener mode?
$passphrase string Passphrase
$pid integer PID of process which bound this socket
$pkfile string Private key file
$pool PHPDaemon\Network\Pool Pool
$reuse boolean Reuse?
$revision integer Revision
$source string Source
$ssl mixed SSL
$tls mixed TLS
$uri string URI
$verifydepth integer Verify depth
$verifypeer boolean Verify peer?

Méthodes publiques

Méthode Description
__construct ( $uri ) : object Constructor
__destruct ( ) : void Destructor
__toString ( ) : string toString handler
attachTo ( Pool $pool ) : void Attach to ConnectionPool
bindSocket ( ) : boolean Bind given addreess
close ( ) : void Close each of binded sockets.
disable ( ) : void Disable all events of sockets
enable ( ) : void Enable socket events
finish ( ) : void Finishes Generic
getPort ( ) : string | null Get port
getUri ( ) : string Get URI
netMatch ( $CIDR, $IP ) : boolean Checks if the CIDR-mask matches the IP
onAcceptEv ( EventListener $listener, $fd, $addrPort, $ctx )
setFd ( string $fd ) : void Route incoming request to related application

Méthodes protégées

Méthode Description
importParams ( ) : void Import parameters
initSecureContext ( ) : void Initialize SSL/TLS context
onBound ( ) : boolean | null Called when socket is bound

Method Details

__construct() public méthode

Constructor
public __construct ( $uri ) : object
Résultat object

__destruct() public méthode

Destructor
public __destruct ( ) : void
Résultat void

__toString() public méthode

toString handler
public __toString ( ) : string
Résultat string

attachTo() public méthode

Attach to ConnectionPool
public attachTo ( Pool $pool ) : void
$pool PHPDaemon\Network\Pool
Résultat void

bindSocket() abstract public méthode

Bind given addreess
abstract public bindSocket ( ) : boolean
Résultat boolean Success.

close() public méthode

Close each of binded sockets.
public close ( ) : void
Résultat void

disable() public méthode

Disable all events of sockets
public disable ( ) : void
Résultat void

enable() public méthode

Enable socket events
public enable ( ) : void
Résultat void

finish() public méthode

Finishes Generic
public finish ( ) : void
Résultat void

getPort() public méthode

Get port
public getPort ( ) : string | null
Résultat string | null

getUri() public méthode

Get URI
public getUri ( ) : string
Résultat string

importParams() protected méthode

Import parameters
protected importParams ( ) : void
Résultat void

initSecureContext() protected méthode

Initialize SSL/TLS context
protected initSecureContext ( ) : void
Résultat void

netMatch() public static méthode

Checks if the CIDR-mask matches the IP
public static netMatch ( $CIDR, $IP ) : boolean
Résultat boolean Result

onAcceptEv() public méthode

public onAcceptEv ( EventListener $listener, $fd, $addrPort, $ctx )
$listener EventListener
$fd
$addrPort
$ctx

onBound() protected méthode

Called when socket is bound
protected onBound ( ) : boolean | null
Résultat boolean | null Success

setFd() public méthode

Route incoming request to related application
public setFd ( string $fd ) : void
$fd string
Résultat void

Property Details

$allowselfsigned protected_oe property

Allow self-signed?
protected bool $allowselfsigned
Résultat boolean

$cafile protected_oe property

CA file
protected string $cafile
Résultat string

$certfile protected_oe property

Certificate file
protected string $certfile
Résultat string

$ctx protected_oe property

Context
protected mixed $ctx
Résultat mixed

$ctxname protected_oe property

Context name
protected string $ctxname
Résultat string

$enabled protected_oe property

Enabled?
protected bool $enabled
Résultat boolean

$erroneous protected_oe property

Erroneous?
protected bool $erroneous
Résultat boolean

$ev protected_oe property

Event
protected Event,EventListener $ev
Résultat EventListener\Event

$fd protected_oe property

File descriptor
protected mixed $fd
Résultat mixed

$listenerMode protected_oe property

Listener mode?
protected bool $listenerMode
Résultat boolean

$passphrase protected_oe property

Passphrase
protected string $passphrase
Résultat string

$pid protected_oe property

PID of process which bound this socket
protected int $pid
Résultat integer

$pkfile protected_oe property

Private key file
protected string $pkfile
Résultat string

$pool protected_oe property

Pool
protected Pool,PHPDaemon\Network $pool
Résultat PHPDaemon\Network\Pool

$reuse protected_oe property

Reuse?
protected bool $reuse
Résultat boolean

$revision protected_oe property

Revision
protected int $revision
Résultat integer

$source protected_oe property

Source
protected string $source
Résultat string

$ssl protected_oe property

SSL
protected mixed $ssl
Résultat mixed

$tls protected_oe property

TLS
protected mixed $tls
Résultat mixed

$uri protected_oe property

URI
protected string $uri
Résultat string

$verifydepth protected_oe property

Verify depth
protected int $verifydepth
Résultat integer

$verifypeer protected_oe property

Verify peer?
protected bool $verifypeer
Résultat boolean