X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fhub%2Fmain%2Fhandler%2Fnetwork%2Fudp%2Fclass_UdpRawDataHandler.php;h=703a5502fe68d41b0a82acf1e1e6a5a1077893c1;hb=e0bb6bee909082fa6408887106037520eddeeea1;hp=ec067ebd3a04180cb90da593258046e0b10679e8;hpb=c13fedc3ee06651ae33665a6690d2e6d5382715c;p=hub.git diff --git a/application/hub/main/handler/network/udp/class_UdpRawDataHandler.php b/application/hub/main/handler/network/udp/class_UdpRawDataHandler.php index ec067ebd3..703a5502f 100644 --- a/application/hub/main/handler/network/udp/class_UdpRawDataHandler.php +++ b/application/hub/main/handler/network/udp/class_UdpRawDataHandler.php @@ -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]); } }