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 » Community » U++ community news and announcements » JsonRPC support
Re: JsonRPC support [message #37774 is a reply to message #37773] Sun, 11 November 2012 20:12 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
Do not really have time to provide tested example, but it should be something like:

for(;;) {
	TcpSocket rpc;
	accept_mutex.Enter();
	if(!rpc.Listen(port, 5))
		return false;
	accept_mutex.Enter();
	TcpSocket http;
	if(listen_socket.Accept(rpc))
		RpcPerform(http, NULL);
}


...create a reasonable work thread pool and start do this loop in all of them...
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Two small ide improvements
Next Topic: Major Draw / CtrlCore refactor
Goto Forum:
  


Current Time: Sun Aug 24 11:45:10 CEST 2025

Total time taken to generate the page: 0.07013 seconds