소스 검색

innerMainSocket_tcp acceptTCP

walkor 11 년 전
부모
커밋
128a90844f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      applications/ChatDemo/Bootstrap/Gateway.php

+ 1 - 1
applications/ChatDemo/Bootstrap/Gateway.php

@@ -93,7 +93,7 @@ class Gateway extends Man\Core\SocketWorker
         
         // 添加读udp事件
         $this->event->add($this->innerMainSocket_udp,  Man\Core\Events\BaseEvent::EV_READ, array($this, 'recvUdp'));
-        $this->event->add($this->innerMainSocket_udp,  Man\Core\Events\BaseEvent::EV_READ, array($this, 'acceptTCP'));
+        $this->event->add($this->innerMainSocket_tcp,  Man\Core\Events\BaseEvent::EV_READ, array($this, 'acceptTCP'));
         
         // 初始化到worker的通信地址
         $this->initWorkerAddresses();