The context object establishes communication with an EMS server or an LDAP server, authenticates the user, and submits name queries.
tibems_status tibemsLookupContext_Create(tibemsLookupContext* context,tibems_status tibemsLookupContext_CreateSSL(tibemsLookupContext* context,tibemsSSLParams sslParams,
context and sslParams have usage pointer.
The context object connects to the EMS server at this URL. If configuring a fault-tolerant client, enter two of more URLs, as described in Configuring C and COBOL Clients for Fault-Tolerant Connections. The context object uses this data to create an SSL connection to the EMS server. The first call produces a lookup context that communicates with server without encryption. The second call produces a lookup context that communicates using an SSL connection.If the server permits anonymous lookup, you may supply null values for the username and password parameters.tibems_status tibemsLookupContext_CreateExternal(tibemsLookupContext* context,tibemsLookupParams lookupParams );
context and lookupParams have usage pointer.
After the function returns successfully, the calling program may delete this struct.tibems_status tibemsLookupContext_Destroy(tibemsLookupContext context );
context has usage pointer.
tibems_status tibemsLookupContext_Lookup(tibemsLookupContext context,tibems_status tibemsLookupContext_LookupDestination(tibemsLookupContext context,tibemsDestination* destination);tibems_status tibemsLookupContext_LookupConnectionFactory(tibemsLookupContext context,tibemsConnectionFactory* factory);
The function stores the results of the lookup operation in this location.The first call looks up a generic object; the calling program must cast the result to the expect type. The other calls restrict lookup to either destinations or connection factories.
Copyright © TIBCO Software Inc. All Rights Reserved.