divyang4481 / rcf-cpp

Automatically exported from code.google.com/p/rcf-cpp
0 stars 0 forks source link

Binding one client thread to a specific server thread #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi Jarl,

Is there a provision for binding a particular thread in a Multi threaded
client  to a particular  thread in multi threaded server?

suppose,  there is Multi threaded Client with 5 threads in it and Multi
threaded Server with 5 threads. 

Always 1st client thread should communicate ONLY  to 1st server thread.
like wise 

2nd client thread should communicate ONLY  to 2nd Server Thread  etc. and so on

5th client thread should communicate ONLY  to 5th server thread.

Thanks
Regards,
-Raveendra

Original issue reported on code.google.com by mraveend...@gmail.com on 7 May 2009 at 9:40

GoogleCodeExporter commented 9 years ago
There isn't any support for that in RCF. Usually it's better to be as thread-
agnostic as possible. If you absolutely have to have a certain thread 
responding to 
a certain client, you would need multiple RcfServer's on distinct ports, with 
each 
client talking to a server of its own.

I'm curious as to why you would need this... Most of the time it's enough for 
the 
clients to create a session-specific binding on the server, using 
RCF::SessionObjectFactoryService , and put their client-specific data in that.

Regards,
Jarl.

Original comment by jarl.lin...@gmail.com on 18 May 2009 at 2:05

GoogleCodeExporter commented 9 years ago

Original comment by jarl.lin...@gmail.com on 11 Jul 2009 at 10:36