/** * @desc 打开套接字,设置为非阻塞 * @see Socket::Open() */ public function Open($sAddr = "0.0.0.0", $iPort = 0, $bReuseAddr = true) { if (parent::Open($sAddr, $iPort, $bReuseAddr) == -1 || $this->SetBlock(false) == -1) { $this->Close(); return -1; } return 0; }