PHP Interface Kraken\Ipc\Socket\SocketListenerInterface

Inheritance: extends Kraken\Event\EventEmitterInterface, extends Kraken\Loop\LoopResourceInterface, extends Kraken\Stream\StreamBaseInterface
Show file Open project: kraken-php/framework Interface Usage Examples

Public Methods

Method Description
getLocalAddress ( ) : string Get socket local address.
getLocalEndpoint ( ) : string Get listener endpoint.
getLocalHost ( ) : string Get socket local host.
getLocalPort ( ) : string Get socket local port.
stop ( ) Stop listener and underlying resource object. It is an alias for close() method.

Method Details

getLocalAddress() public method

Get socket local address.
public getLocalAddress ( ) : string
return string

getLocalEndpoint() public method

This method returns server endpoint with this pattern [$protocol://$address:$port].
public getLocalEndpoint ( ) : string
return string

getLocalHost() public method

Get socket local host.
public getLocalHost ( ) : string
return string

getLocalPort() public method

Get socket local port.
public getLocalPort ( ) : string
return string

stop() public method

Stop listener and underlying resource object. It is an alias for close() method.
See also: StreamBaseInterface::close
public stop ( )