HH\Lib\Unix\Server
Requires the Hack Standard Library - Experimental Additions to be installed.
Facebook Engineer?
This function is available as Unix\Server()
in Facebook's www repository.
Interface Synopsis
namespace HH\Lib\Unix;
final class Server implements \HH\Lib\Network\Server<Socket, DisposableSocket, CloseableSocket> {...}
Public Methods
::createAsync(string $path): Awaitable<this>
Create a bound and listening instance->getLocalAddress(): string
->nextConnectionAsync(): Awaitable<DisposableSocket>
->nextConnectionNDAsync(): Awaitable<CloseableSocket>
->stopListening(): void