Home » U++ Library support » U++ Library : Other (not classified elsewhere) » XmlRpc Bugfixes  
	
		
		
			| XmlRpc Bugfixes [message #31980] | 
			Wed, 13 April 2011 23:14   | 
		 
		
			
				
				
				
					
						  
						zsolt
						 Messages: 702 Registered: December 2005  Location: Budapest, Hungary
						
					 | 
					Contributor   | 
					 | 
		 
		 
	 | 
 
	
		I was not able to send array or vector of structs because of some missing functionalities. 
 
These are the fixed functions in XmlRpc.h from line 111: 
 
template <class T>
void ValuePut(Value& v, const Array<T>& x)
{
	ValueArray va;
	for(int i=0; i<x.GetCount(); i++){
		Value vs;
		ValuePut(vs, x[i]);
		va.Add(vs);
	}
	v = va;
}
template <class T>
void ValuePut(Value& v, const Vector<T>& x)
{
	ValueArray va;
	for(int i=0; i<x.GetCount(); i++){
		Value vs;
		ValuePut(vs, x[i]);
		va.Add(vs);
	}
	v = va;
} 
 
I attached a demo demonstrating the fixes. 
 
There is a server sending a struct with an array and a vector of struct and a client showing the received data. 
 
These would be useful as reference examples, I think.
		
		
		
 |  
	| 
		
	 | 
 
 
 |  
  
 
Goto Forum:
 
 Current Time: Tue Nov 04 15:39:35 CET 2025 
 Total time taken to generate the page: 0.05346 seconds 
 |