python - Concurrent Remote Procedure Calls to C++ Object -


i have class written in c++ acts remote procedure call server.

i have large (over gigabyte) file parse, reading in parameters instantiate objects store in std::map. rpc server listen calls client, take parameters passed client, appropriate value in map, calculation, , return calculated value client, , want serve concurrent requests -- i'd have multiple threads listening. btw, after map populated, not change. requests read it.

i'd write client in python. server http server listens post requests, , client can use urllib send them?

i'm new c++ have no idea how write server. can point me examples?

maybe factors can affect selection.

one solution use fastcgi.

client sends http request http server has fastcgi enabled. htp server dispatch request rpc server via fastcgi mechanism. rpc server process , generates response, , sends http server. http server sends response client.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -