PHP Class Kraken\Ipc\Socket\Socket

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

Public Methods

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

Protected Methods

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

Private Methods

Method Description
parseEndpoint ( boolean $wantPeer = false ) : string

Method Details

__construct() public method

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

createClient() protected method

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

getLocalAddress() public method

public getLocalAddress ( )

getLocalEndpoint() public method

public getLocalEndpoint ( )

getLocalHost() public method

public getLocalHost ( )

getLocalPort() public method

public getLocalPort ( )

getRemoteAddress() public method

public getRemoteAddress ( )

getRemoteEndpoint() public method

public getRemoteEndpoint ( )

getRemoteHost() public method

public getRemoteHost ( )

getRemotePort() public method

public getRemotePort ( )

handleClose() public method

public handleClose ( )

handleData() public method

public handleData ( )

stop() public method

public stop ( )