Main MRPT website > C++ reference for MRPT 1.4.0
Enumerations | Functions
mrpt::utils::net Namespace Reference

Detailed Description

A set of useful routines for networking.

(in #include <mrpt/utils/net_utils.h>)

Enumerations

enum  ERRORCODE_HTTP {
  erOk = 0 , erBadURL , erCouldntConnect , erNotFound ,
  erOtherHTTPError
}
 Possible returns from a HTTP request. More...
 

Functions

ERRORCODE_HTTP BASE_IMPEXP http_get (const string &url, vector_byte &out_content, string &out_errormsg, int port=80, const string &auth_user=string(), const string &auth_pass=string(), int *out_http_responsecode=NULL, mrpt::utils::TParameters< string > *extra_headers=NULL, mrpt::utils::TParameters< string > *out_headers=NULL, int timeout_ms=1000)
 Perform an HTTP GET operation (version for retrieving the data as a vector_byte)
 
ERRORCODE_HTTP BASE_IMPEXP http_get (const string &url, string &out_content, string &out_errormsg, int port=80, const string &auth_user=string(), const string &auth_pass=string(), int *out_http_responsecode=NULL, mrpt::utils::TParameters< string > *extra_headers=NULL, mrpt::utils::TParameters< string > *out_headers=NULL, int timeout_ms=1000)
 Perform an HTTP GET operation (version for retrieving the data as text)
 
bool BASE_IMPEXP DNS_resolve_async (const std::string &server_name, std::string &out_ip, const unsigned int timeout_ms=3000)
 Resolve a server address by its name, returning its IP address as a string - This method has a timeout for the maximum time to wait for the DNS server.
 
std::string BASE_IMPEXP getLastSocketErrorStr ()
 Returns a description of the last Sockets error.
 



Page generated by Doxygen 1.9.6 for MRPT 1.4.0 SVN: at Wed Feb 15 01:46:32 UTC 2023