../pvss.htm menu.gif basics.gif

xmlrpcCloseServer()

Closes the connection to the server.

Synopsis

xmlrpcCloseServer(string id);

Parameters

    Parameter

    Meaning

    id

    The server ID.

Description

Closes the connection to the server.

Return Valuewccoa

The function returns TRUE if the call was executed successfully and FALSE in case of errors.

example.gifEXAMPLE

 

Connect to the server as follows, call the function on the server as well as close the connection to the server:

#uses "CtrlXmlRpc"

main()

{

string id = "servID";

string func = ".own.testmethod";

dyn_mixed args = makeDynString("World");;

mixed res;

string host = "localhost";

int port = "80";

bool secure = FALSE;

xmlrpcClient();

xmlrpcConnectToServer(id, host, port, secure);

xmlrpcCall(id, func, args, res);

DebugN("Result of XmlRpc call", res);

xmlrpcCloseServer(id);

}

 

Member of

 

Availability

 

See also

xmlrpcConnectToServer(), xmlrpcClient(), xmlrpcCall(), xmlrpcDecodeRequest(), xmlrpcEncodeResponse(), xmlrpcHandler()

 

Top Of Page

 

V 3.11 SP1

Copyright ETM professional control GmbH 2013 All Rights Reserved