" /> Tserver Framework - Genesys CTI User Forum

Author Topic: Tserver Framework  (Read 4847 times)

This topic contains a post which is marked as Best Answer. Press here if you would like to see it.

Michel Periard

  • Guest
Tserver Framework
« on: January 01, 1970, 12:00:00 AM »
Advertisement
Developping a program using Tserver APIs and being pretty new with Genesys, i have the following questions:

When a TOpenServer request is posted, a server name must be passed as an argument.

What is the magic behind such server name an the tcp/ip connection parameters (ip adress and port) of the Tserver?

Do i have to create a profile (the server name argument being the key) for each of my Tservers? If so, what need to be in the profile, where is it kept? Does it have to be built using Configuration Manager?

If not, how can i express my Tserver connection parameters using TOpenServer?

Anything will help. Thanks.

Michel Periard

  • Guest
Tserver Framework
« Reply #1 on: January 01, 1970, 12:00:00 AM »
I saw in the icom program a call to conn_startup/conn_cleanup, is it part of the magic?

If so, where are these functions?

Thanks.

Akiko@Negishi

  • Guest
Tserver Framework
« Reply #2 on: January 01, 1970, 12:00:00 AM »
Good morning, Michael!

You need to remember that TLib is just a wrapper class for CSocket and treat it accordingly. We are using an array of classes to keep track of TServers.

Why do you even NEED to know TServer name? It is nice to use CME, but you do not have to. Just use the handle name returned by the connection function, because this is the only thing that you cannot lose.

Marked as best answer by on Today at 11:43:52 PM

Michel Periard

  • Guest
Tserver Framework
« Reply #3 on: January 01, 1970, 12:00:00 AM »
  • Undo Best Answer
  • What do you mean by the connection function?

    In the sample
    ...
    char *server_name = "servername";
    char *appl_name = "applname";
    TServer server;
    TOpenMode open_mode = AsyncMode;

    if ((server = TOpenServer(server_name,dispatch_function,appl_name,NULL,open_mode)) < 0){
    printf("TOpenServer error= %d\n",server);
    return;
    }
    ...

    What does the string pointer server_name represent?
    Is it a key in some kind of profile file?
    If so what information needs to be in such profile?
    How is it created?

    Again i'm knew to TServer programming so apologize if the answers to these questions are obvious.

    Thanks.