Explorar el Código

TcpConnection add getSocket method

walkor hace 10 años
padre
commit
6fac9caa12
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  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