EmbeddedRPC / erpc

Embedded RPC
https://github.com/EmbeddedRPC/erpc/wiki
BSD 3-Clause "New" or "Revised" License
776 stars 213 forks source link

Multiple client support usage #398

Open tmordeko opened 10 months ago

tmordeko commented 10 months ago

Hi,

Is there an example of usage for the upcoming multiple client support ?

Thanks

Hadatko commented 10 months ago

Hi @tmordeko Just this so far and tests: https://github.com/EmbeddedRPC/erpc/pull/392/files

tmordeko commented 10 months ago

Hi @Hadatko Not sure I understand the usage from the test you pointed me to in your previous reply, is it available only over TCP transport erpc_transport_tcp_init ? does it continue to use same simple server data structure ?

Thanks

Hadatko commented 10 months ago

Any transport supported transport can be used. Not supported transport can be added trough PR.

amgross commented 9 months ago

Hi @Hadatko , I am probably missing something, where in this example I can find two clients? I see just one.

Hadatko commented 9 months ago

Hi @amgross, there is no examples with two clients directly. Just example how to init client with new code. If you init two clients and everything in that init is doubled it should work.

amgross commented 9 months ago

OK, thanks @Hadatko, understand. This new feature is about one application having two clients talking to two different servers and not one server serving two clients, am I correct? Is there is plan to support one server serving two clients in parallel?

Hadatko commented 9 months ago

Yes you are correct. One server is currently serving request on one transport layer, so i would said that depends on transport layer.