HH\Lib\Network\Socket
Requires the Hack Standard Library - Experimental Additions to be installed.
Facebook Engineer?
This function is available as Network\Socket()
in Facebook's www repository.
A handle representing a connection between processes
It is possible for both ends to be connected to the same process, and to either be local or across a network.
Interface Synopsis
namespace HH\Lib\Network;
interface Socket implements \HH\Lib\IO\ReadWriteHandle {...}
Public Methods
->getLocalAddress(): this::TAddress
Returns the address of the local side of the socket->getPeerAddress(): this::TAddress
Returns the address of the remote side of the socket