소스 검색

TcpConnection add getSocket method

walkor 10 년 전
부모
커밋
6fac9caa12
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      Workerman/Connection/TcpConnection.php

+ 9 - 0
Workerman/Connection/TcpConnection.php

@@ -397,6 +397,15 @@ class TcpConnection extends ConnectionInterface
            $this->destroy();
         }
     }
+    
+    /**
+     * get socket
+     * @return resource
+     */
+    public function getSocket()
+    {
+        return $this->_socket;
+    }
 
     /**
      * destroy the connection