Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » A few bugs in Core/Rpc
A few bugs in Core/Rpc [message #39351] Wed, 13 March 2013 13:43 Go to next message
steffen is currently offline  steffen
Messages: 38
Registered: May 2007
Location: Denmark
Member

Hi,
We are trying to use the JsonRPCRequest and have stumbled over a few bugs (svn rev. 5909):

Two warnings on missing return value in Core/Rpc/legacy.h:
inline
bool   XmlRpcPerform(TcpSocket& http, const char *group)
{
	RpcPerform(http, group);
}

inline
bool   XmlRpcServerLoop(int port, const char *group = NULL)
{
	RpcServerLoop(port, group);
}

Should be changed to
inline
bool   XmlRpcPerform(TcpSocket& http, const char *group)
{
	return RpcPerform(http, group);
}

inline
bool   XmlRpcServerLoop(int port, const char *group = NULL)
{
	return RpcServerLoop(port, group);
}


Also our server expects to see Content-Type="application/json", which I think is correct for http transport.
We tried to call OurJsonRpcRequest.ContentType("application/json"), but was not allowed because RpcRequest inherits privately from HttpRequest. We would also like to change the timeouts and call the Abort function, so please make it public inheritance.

In Core/Rpc/Rpc.h:
class RpcRequest : HttpRequest {

Should be changed to
class RpcRequest : public HttpRequest {


Best Regards,
Steffen
Re: A few bugs in Core/Rpc [message #39375 is a reply to message #39351] Thu, 14 March 2013 19:23 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thanks, fixed.

I have also used suggested content types (application/json, application/xml) as default both for server and client.

Mirek
Previous Topic: LOG compression
Next Topic: UPP && Oracle OCCI && VC 2010
Goto Forum:
  


Current Time: Fri Apr 19 14:19:25 CEST 2024

Total time taken to generate the page: 0.03874 seconds