Communicating with TIBCO Patterns Servers
In all of the examples so far the tables have been assumed to be local, that is within the same process. However, you are probably communicating with a TIBCO Patterns server process, in which case the host must be identified. This is done using the host parameter. The host parameter is always the first parameter of any function that must communicate with a TIBCO Patterns server. A host parameter of LPAR_NULL indicates the local process. To construct a host parameter for a remote TIBCO Patterns server, use:
lpar_t lkt_host_lpar( const char *address, int port );
The input address identifies the machine on which the server is running. It can be a network (IP) address, or a network (DNS) name.
The port identifies the port the server is listening on.
The output returns an lpar that holds the host information. It can be used in any lkt function that requires a host parameter.