Server->listen

监听一个新的Server端口,此方法是 addlistener 的别名。

  1. bool Server->listen(string $host, int $port, int $type);

listen方法在1.7.9以上版本可用