Connecting - trillium_geolocation - 15.19

Trillium Geolocation Reference

Product type
Software
Portfolio
Verify
Product family
Trillium
Product
Trillium > Trillium Geolocation
Version
15.19
Language
English
Product name
Trillium Geolocation
Title
Trillium Geolocation Reference
Copyright
2023
First publish date
2017
Last updated
2024-04-16
Published on
2024-04-16T03:27:32.653616

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;
   }