revXMLRPC_SetSocket

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
revXMLRPC_SetSocket <XMLRPCdocumentID>, <RPCsocket>
Associationsxml-rpc library
Summary

Sets the socket of an XML-RPC document.

Introduced2.5
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
XMLRPCdocumentID

The number returned by the revXMLRPC_CreateRequest when you created the XML-RPC request.

RPCsocket

The number of the opened socket to set and use.

Example
revXMLRPC_SetSocket tRequest,tOpenSocket
Values
NameTypeDescription
The result

If the revXMLRPC_SetSocket command encounters an error, it returns an error message starting with "xmlrpcerr" ..

RelatedCommand: post
Function: revXMLRPC_GetSocket, revXMLRPC_CreateRequest
Glossary: return, XML-RPC, Standalone Application Settings, socket, standalone application, function, command, LiveCode custom library, XML-RPC document
Library: XML-RPC library
Securitydisk, process
Description

Use the revXMLRPC_SetSocket function to set the network socket used in the execution of an XML-RPC request. By default, XML-RPC uses the post command to execute an XML-RPC request, but this has the overhead of opening and closing a new socket every time. You can avoid this by re-using an already opened socket.

Important: The revXMLRPC_SetSocket command is part of the XML-RPC library. To ensure that the command works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure the "XML-RPC" library checkbox is checked.

Tagsnetworking