erpc icon indicating copy to clipboard operation
erpc copied to clipboard

Multiple servers running on one process

Open Qeenyra opened this issue 4 years ago • 4 comments

Hi, When creating multiple servers, it looks like g_server in erpc_server_init will get overwritten with each new server init. Is it possible to have more than one server running on one process? Thanks!

Qeenyra avatar Nov 03 '21 21:11 Qeenyra

Hi eRPC user. Thank you for your interest and welcome. We hope you will enjoy this framework well.

github-actions[bot] avatar Nov 03 '21 21:11 github-actions[bot]

Hello @Qeenyra , I am afraid multiple servers are not supported yet.

MichalPrincNXP avatar Nov 05 '21 07:11 MichalPrincNXP

Hi, there can be multiple resource independent servers run. Just do not use default setup implementation for server. You can get inspiration from there to create as many servers as you want ;)

Hadatko avatar Nov 08 '21 09:11 Hadatko

I am thinking that we can change implementation of these functions to add to each function server id. And define in erpc_config the amount of servers. This way we can provide this functionality to users.

Hadatko avatar Nov 08 '21 09:11 Hadatko