Ver código fonte

TcpConnection add getSocket method

walkor 10 anos atrás
pai
commit
6fac9caa12
1 arquivos alterados com 9 adições e 0 exclusões
  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