Added Query static function to Tcp and Udp