Connecting - trillium_geolocation - 15.21

Trillium Geolocation Reference

Product type
Software
Portfolio
Verify
Product family
Trillium
Product
Trillium > Trillium Geolocation
Version
15.21
Language
English
Product name
Trillium Geolocation
Title
Trillium Geolocation Reference
Copyright
2023
First publish date
2017
Last updated
2024-07-17
Published on
2024-07-17T14:48:30.219520

To connect to a server installation, you must first set the hostname. You may include a port number if the server is listening on a non-standard port, and you may also set the network timeout. After setting these values, call the connect function and check the result to initiate a session with the server:

   AddHost(&myServer, "localhost");
   if (!Connect(&myServer))
   {
      cout << "Error connecting to server: "
         << getLastError(&myServer)
         << endl;
 
      return -1;
   }