10 #ifndef CNTRIPClient_H 11 #define CNTRIPClient_H 100 :
server(
"www.euref-ip.net"),
std::promise< void > m_sem_sock_closed
bool open(const NTRIPArgs ¶ms, std::string &out_errmsg)
Tries to open a given NTRIP stream and, if successful, launches a thread for continuously reading fro...
bool m_waiting_answer_connection
std::string generator_model
std::string mountpoint_name
void private_ntrip_thread()
The working thread.
static bool retrieveListOfMountpoints(TListMountPoints &out_list, std::string &out_errmsg, const std::string &server, int port=2101, const std::string &auth_user=std::string(), const std::string &auth_pass=std::string())
Connect to a given NTRIP caster and get the list of all available mountpoints and their parameters...
NTRIPArgs()
Default params.
Contains classes for various device interfaces.
std::string compr_encryp
"none"
A client for NTRIP (HTTP) sources of differential GPS corrections from internet servers, or Global navigation satellite system (GNSS) internet radio.
void close()
Closes the connection.
std::string network
IGS, ...
A descriptor of one stream in an NTRIP Caster - See CNTRIPClient::retrieveListOfMountpoints.
virtual ~CNTRIPClient()
Default destructor.
This class is a bulk sequence of bytes with MultiThread (MT)-safe read and write operations.
std::string format
RTCM 2.3, RTCM 3, CMR+, etc...
NTRIPArgs m_args
All the parameters for the NTRIP connection.
std::string country_code
ITA, ESP, DEU,...
int carrier
0: No carrier phase, 1: L1, 2: L1+L2
bool m_thread_do_process
Will be "true" between "open" and "close".
GLsizei const GLchar ** string
CNTRIPClient()
Default constructor.
std::string nav_system
GPS, ...
mrpt::containers::MT_buffer m_upload_data
Buffer for data to be sent back to the server.
std::promise< void > m_sem_first_connect_done
std::string format_details
TConnResult m_answer_connection
std::list< TMountPoint > TListMountPoints
Used in CNTRIPClient::retrieveListOfMountpoints.
GLsizei GLsizei GLenum GLenum const GLvoid * data
char authentication
"N": none, "B": basic, "D": digest
GLenum const GLfloat * params
The arguments for connecting to a NTRIP stream, used in CNTRIPClient::open.
mrpt::containers::MT_buffer stream_data
The buffer with all the bytes so-far read from the NTRIP server stream.
void sendBackToServer(const std::string &data)
Enqueues a string to be sent back to the NTRIP server (e.g.