PHPDaemon\Network\Server::attachBound PHP Method

attachBound() public method

Attach Generic
public attachBound ( Generic $bound, mixed $inf = null ) : void
$bound PHPDaemon\BoundSocket\Generic Generic
$inf mixed Info
return void
    public function attachBound(\PHPDaemon\BoundSocket\Generic $bound, $inf = null)
    {
        $this->bound->attach($bound, $inf);
        if ($this->eventLoop !== null) {
            $bound->setEventLoop($this->eventLoop);
        }
    }