* 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]);
}
}