PHP Interface React\Socket\ConnectionInterface

Inheritance: extends Evenement\EventEmitterInterface
Show file Open project: reactphp/socket Interface Usage Examples

Public Methods

Method Description
getRemoteAddress ( ) : string | null Returns the remote address (client IP) where this connection has been established from

Method Details

getRemoteAddress() public method

Returns the remote address (client IP) where this connection has been established from
public getRemoteAddress ( ) : string | null
return string | null remote address (client IP) or null if unknown