PHP Class Kraken\Ipc\Socket\Socket

Inheritance: extends Kraken\Stream\AsyncStream, implements Kraken\Ipc\Socket\SocketInterface
Afficher le fichier Open project: kraken-php/framework Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string | resource $endpointOrResource, Kraken\Loop\LoopInterface $loop, mixed[] $config = [] )
getLocalAddress ( )
getLocalEndpoint ( )
getLocalHost ( )
getLocalPort ( )
getRemoteAddress ( )
getRemoteEndpoint ( )
getRemoteHost ( )
getRemotePort ( )
handleClose ( )
handleData ( )
stop ( )

Méthodes protégées

Méthode Description
createClient ( string $endpoint, mixed[] $options = [] ) : resource Create the client resource.

Private Methods

Méthode Description
parseEndpoint ( boolean $wantPeer = false ) : string

Method Details

__construct() public méthode

public __construct ( string | resource $endpointOrResource, Kraken\Loop\LoopInterface $loop, mixed[] $config = [] )
$endpointOrResource string | resource
$loop Kraken\Loop\LoopInterface
$config mixed[]

createClient() protected méthode

This method creates client resource for socket connections.
protected createClient ( string $endpoint, mixed[] $options = [] ) : resource
$endpoint string
$options mixed[]
Résultat resource

getLocalAddress() public méthode

public getLocalAddress ( )

getLocalEndpoint() public méthode

public getLocalEndpoint ( )

getLocalHost() public méthode

public getLocalHost ( )

getLocalPort() public méthode

public getLocalPort ( )

getRemoteAddress() public méthode

public getRemoteAddress ( )

getRemoteEndpoint() public méthode

public getRemoteEndpoint ( )

getRemoteHost() public méthode

public getRemoteHost ( )

getRemotePort() public méthode

public getRemotePort ( )

handleClose() public méthode

public handleClose ( )

handleData() public méthode

public handleData ( )

stop() public méthode

public stop ( )