c++ - What is the best way to call functions over a network? -


i'm planning network communications system program. program divided client , server class, might split them separate programs if big, , nothing else prevents it.

at moment, of network communication call set , functions on server (of 500, , expect generate 500-1,600 requests per second across 8 clients in typical operations).

my current plan use basic network api send machine code inspired opcodes server string, along few bytes of parameters, , have server select function , interpret parameters using massive switch statement.

however, hundreds of possible function call, a) hard read, , b)slow implement. i'm bit concerned performance of large switch statements.

in light of that, confirm if best way implement function calls on network, or tell me if there's better way. i'd love magic api allows x = callserverfunc(server, function, parameter1...) searches have not yet found such library.

you can write code scratch. feel free on how it.

or can use 1 of many ready mature technologies. google corba, dcom, xpcom , on. can @ remote call in common. or consider existing web-based technologies different data formats. starting point. tehnologies mature heavyweight. you'll need knowledge , practice start them.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -