¿ªÔÆÌåÓýfldigi can perform both as an xmlrpc server and as a client (when operating with flrig).kcat looks for the fldigi xmlrpc server and attaches without user intervention when the server is found. In the kcat code: void open_rig_xmlrpc() { ??????? client = new XmlRpc::XmlRpcClient( "127.0.0.1", 7362 ); ??????? // XmlRpc::setVerbosity(5); ??????? // Create a value suitable for the system.multicall method, which ??????? // accepts a single argument: an array of struct { methodName, params } ??????? // where methodName is a string and params is an array of method ??????? // arguments.? The params member is mandatory so we use a single-element ??????? // array containing nil. ??????? XmlRpcValue nil(XmlRpc::nil); ??????? status_query = new XmlRpcValue; ??????? const char* status_methods[] = { ??????????????? main_get_trx_state, main_get_frequency, ??????????????? rig_get_mode, rig_get_bandwidth ??????? }; ??????? for (size_t i = 0; i < sizeof(status_methods)/sizeof(*status_methods); i++) { ??????????????? (*status_query)[0][i]["methodName"] = status_methods[i]; ??????????????? (*status_query)[0][i]["params"][0] = nil; ??????? }; } 73, David On 3/24/24 08:55, Bill, N7DZ wrote:
|