Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »


 
Returns the actual EDMInterface parameters for communication between a thick EDMclient and the EDMserver. Use edmiDefineCommunicationEx to set up the communication parameters.
Related functions:edmiDefineCommunicationEX, edmiDefineCommunication , edmiGetCommunication, edmiConnect, edmiTestConnect.
Header:
#include "sdai.h"
Prototype:
EdmiError edmiGetCommunicationEX(SdaiString *communicationType,
                                  SdaiString *edmServerPortNumber,
                                  SdaiString *edmServerHostName,
                                  SdaiString *edmiHttpTunnelName,
                                  SdaiString *edmiHttpTunnelPortNumber,
                                  SdaiString *edmiHttpTunnelHostName,
                                  SdaiString *proxyServerPortNumber,
                                  SdaiString *proxyServerName);
Arguments:

*communicationType

Variable that will receive the nature of the communication with an EDMserver. Possible communication types are;
"HTTP": Stateful non-transaction oriented communication with the EDMserver by Hyper Text Transfer Protocol.
"TCP": Stateful non-transaction oriented communication with a remote EDMserver by Transfer Communication Protocol.

*edmServerPortNumber

Variable that will receive the service port number used for communication by an EDMserver.

*edmServerHostName

Variable that will receive the name or IP-address of the machine hosting the EDMserver.

*edmiHttpTunnelName

Variable that will receive the name and full path of the HTTP Tunnel Servlet.

*edmiHttpTunnelPortNumber

Variable that will receive the tunnel service port number on the machine hosting the HTTP Tunnel Servlet.

*edmiHttpTunnelHostName

Variable that will receive the name or IP-address of the machine hosting the HTTP Tunnel Servlet.

*proxyServerPortNumber

Variable that will receive the service port number used for communication by the proxy server.

*proxyServerName

Variable that will receive the name or IP-address of the machine hosting the proxy service.

Returns:
A completion code of datatype EdmiError is the returned function value. The completion code has the following values:
Completion code = 0 : Operation successfully performed.
Completion code != 0: Error in operation. Completion code is an EDMinterface error code. Use edmiGetErrorText to get the error text corresponding to the error code.
Example:
EdmiError rstat;
SdaiString comType;
SdaiString srvPort;
SdaiString srvHost;
SdaiString tnlName;
SdaiString tnlPort;
SdaiString tnlHost;
SdaiString prxPort;
SdaiString prxHost;
. . .
if (rstat = edmiGetCommunicationEX(&comType, &srvPort, &srvHost,
&tnlName, &tnlPort, &tnlHost, 
&prxPort, &prxHost)) { 
printf("\nError %d in edmiGetCommunicationEX: %s", rstat, 
edmiGetErrorText(rstat)); 
goto err; 
}
printf("\n Communication Type : %s", comType);
printf("\n EDM Server : %s", srvHost);
printf("\n Port Number : %s", srvPort);
printf("\n Http Tunnel : %s", tnlName ? tnlName : "<unset>");
printf("\n Http Tunnel Server : %s", tnlHost ? tnlHost : "<unset>");
printf("\n Port Number : %s", tnlPort ? tnlPort : "<unset>");
printf("\n Proxy Server : %s", prxHost ? prxHost : "<unset>");
printf("\n Proxy Port : %s", prxPort ? prxPort : "<unset>");
. . .

  • No labels