Name: revXMLRPC_SetPort

Type: command

Syntax: revXMLRPC_SetPort <XML-RPC document>, <port> 

Summary: Sets the port of an XML-RPC document structure.

Introduced: 2.5

OS: mac,windows,linux

Platforms: desktop,server,web

Security: disk,process

Parameters:
port: The port number you want to connect to. If you don't specify a port, port 80 is used. (On most systems, port 80 is used for HTTP connections.)
documentID: The number returned by the revXMLRPC_CreateRequest when you created the XML-RPC request.

The result: If the <revXMLRPC_SetPort> <command> encounters an error, the <result> is set to an error message beginning with "xmlrpcerr".

Description:
Use the <revXMLRPC_SetPort> <command> to set the port that is the target of the execution of an <XML-RPC request>.

>*Important:*  The <revXMLRPC_SetPort> <command> is part of the <XML-RPC library>. To ensure that the <command> works in a <standalone application>, you must include this <Revolution custom library|custom library> when you create your <standalone application|standalone>. In the Inclusions section on the General screen of the <Standalone Application Settings> window, make sure "XML-RPC Library" is selected in the list of script libraries.

References: revXMLRPC_SetHost (command), revXMLRPC_GetPort (function), result (function), revXMLRPC_CreateRequest (function), XML-RPC library (library), Revolution custom library (library), Standalone Application Settings (glossary), standalone application (glossary), command (glossary), XML-RPC request (glossary)

Tags: networking
