*/ namespace Asio; /** * Class UnixAcceptor * * Used for accepting new UNIX domain socket connections. * * @package Asio */ final class UnixAcceptor implements Acceptor { /** * This class can only be instantiated using `Service::addUnixAcceptor()`. */ private function __construct() {} /** * Open acceptor. * * @return int : Error code. */ function open() {} /** * Assign an existing native socket to the acceptor. * * @param int|resource $native_handle * @return int : Error code */ function assign($native_handle) {} /** * Bind acceptor to local endpoint. * * @param string $path * @return int : Error code. */ function bind(string $path) {} /** * {@inheritdoc} */ function listen(int $backlog = null) {} /** * {@inheritdoc} */ function accept(callable $callback = null, $argument = null) {} /** * {@inheritdoc} */ function cancel() {} /** * {@inheritdoc} */ function close() {} }