src/server/Server.php
public function listen(int $port = 119, string $address = self::DEFAULT_ADDRESS, array $options = [])
    {
        // Create a server for the requested address and port.
        $server = $this->factory->create($address, $port, $options);
        $this->servers[] = $server;

        $coroutine = new Coroutine($this->accept($server));
        $coroutine->done();
    }
public function listen(int $port = 119, string $address = self::DEFAULT_ADDRESS, array $options = [])
    {
        // Create a server for the requested address and port.
        $server = $this->factory->create($address, $port, $options);
        $this->servers[] = $server;

        $coroutine = new Coroutine($this->accept($server));
        $coroutine->done();
    }
public function listen ( int $ port = 119 , string $ address = self :: DEFAULT_ADDRESS , array $ options = [ ] ) { // Create a server for the requested address and port. $ server = $ this -> factory -> create ( $ address , $ port , $ options ) ; $ this -> servers [ ] = $ server ; $ coroutine = new Coroutine ( $ this -> accept ( $ server ) ) ; $ coroutine -> done ( ) ; }
Starts the server and begins listening for connections.
Starts the server and begins listening for connections .