Pārlūkot izejas kodu

TcpConnection add getSocket method

walkor 10 gadi atpakaļ
vecāks
revīzija
6fac9caa12
1 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  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