PHP Interface Kraken\Network\NetworkConnectionInterface

Inheritance: extends Ratchet\ConnectionInterface
Mostra file Open project: kraken-php/framework Interface Usage Examples

Public Methods

Method Description
close ( ) Close the connection.
getAddress ( ) : string Get the remote address of connection.
getEndpoint ( ) : string Get the remote endpoint of connection.
getHost ( ) : string Get the remote host of connection.
getPort ( ) : string Get the remote port of connection.
getResourceId ( ) : integer Get the resource id of connection.
send ( string $data ) Send data to the connection.

Method Details

close() public method

Close the connection.
public close ( )

getAddress() public method

Get the remote address of connection.
public getAddress ( ) : string
return string

getEndpoint() public method

Get the remote endpoint of connection.
public getEndpoint ( ) : string
return string

getHost() public method

Get the remote host of connection.
public getHost ( ) : string
return string

getPort() public method

Get the remote port of connection.
public getPort ( ) : string
return string

getResourceId() public method

Get the resource id of connection.
public getResourceId ( ) : integer
return integer

send() public method

Send data to the connection.
public send ( string $data )
$data string