PHP Interface Kraken\Ipc\Socket\SocketInterface

Inheritance: extends Kraken\Stream\AsyncStreamInterface
Show file Open project: kraken-php/framework Interface Usage Examples

Public Methods

Method Description
getLocalAddress ( ) : string Get socket local address.
getLocalEndpoint ( ) : string Get socket local endpoint.
getLocalHost ( ) : string Get socket local host.
getLocalPort ( ) : string Get socket local port.
getRemoteAddress ( ) : string Get socket remote address.
getRemoteEndpoint ( ) : string Get socket remote endpoint.
getRemoteHost ( ) : string Get socket remote host.
getRemotePort ( ) : string Get socket remote 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 socket local 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

getRemoteAddress() public method

Get socket remote address.
public getRemoteAddress ( ) : string
return string

getRemoteEndpoint() public method

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

getRemoteHost() public method

Get socket remote host.
public getRemoteHost ( ) : string
return string

getRemotePort() public method

Get socket remote port.
public getRemotePort ( ) : 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 ( )