]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/handler/network/udp/class_UdpRawDataHandler.php
Now incoming, outgoing and 'server' pools are possible
[hub.git] / application / hub / main / handler / network / udp / class_UdpRawDataHandler.php
index ec067ebd3a04180cb90da593258046e0b10679e8..703a5502fe68d41b0a82acf1e1e6a5a1077893c1 100644 (file)
@@ -52,20 +52,20 @@ class UdpRawDataHandler extends BaseRawDataHandler implements Networkable {
         * Processes raw data from given resource. This is mostly useful for TCP
         * package handling and is implemented in the TcpListener class
         *
-        * @param       $resource       A valid resource identifier
+        * @param       $socketArray    A valid socket resource array
         * @return      void
         * @throws      InvalidResourceException        If the given resource is invalid
         * @todo        0%
         */
-       public function processRawDataFromResource ($resource) {
+       public function processRawDataFromResource (array $socketArray) {
                // Check the resource
-               if (!is_resource($resource)) {
+               if ((!isset($socketArray[BasePool::SOCKET_ARRAY_RESOURCE])) || (!is_resource($socketArray[BasePool::SOCKET_ARRAY_RESOURCE]))) {
                        // Throw an exception
                        throw new InvalidResourceException($this, self::EXCEPTION_INVALID_RESOURCE);
                } // END - if
 
                // Implement processing here
-               $this->partialStub('Please implement this method. resource=' . $resource);
+               $this->partialStub('Please implement this method. resource=' . $socketArray[BasePool::SOCKET_ARRAY_RESOURCE] . ',type=' . $socketArray[BasePool::SOCKET_ARRRAY_CONN_TYPE]);
        }
 }