Open GoogleCodeExporter opened 8 years ago
The subscribing RcfServer on your client, should not be listening on any
pipe... What's happening is that your second client is making calls to the
server in the first client, rather than to the publishing server.
Change your client code to look like this:
//RCF::RcfServer subscriber(*ep);
RCF::RcfServer subscriber( RCF::NamedPipeEndpoint("") );
, and you should be fine.
Original comment by jarl.lin...@gmail.com
on 21 Dec 2010 at 4:42
Thanks, it really did the work.
Quick question, if I want to set publisher/subscriber communication over SSL
using OpenSSL, do I have to set additional certificate for subscription server
on the client side?
Thanks.
Original comment by zoltan.b...@gmail.com
on 21 Dec 2010 at 7:04
BTW, is it possible at all to set communication between publisher/subscriber
strictly over SSL?
Thanks.
Original comment by zoltan.b...@gmail.com
on 21 Dec 2010 at 12:48
Currently publish/subscribe doesn't support transport filters. If you need to
make calls from a server to a client over an encrypted connections, you can use
server-to-client callbacks, and configure SSL on the callback connection.
There is a section on server-to-client callbacks in the User Guide:
http://deltavsoft.com/RcfUserGuide/1.2/rcf_user_guide/Bidirectional.html#rcf_use
r_guide.Bidirectional.ServerCallbacks
Original comment by jarl.lin...@gmail.com
on 22 Dec 2010 at 12:37
Sorry, that link is old... It should be:
http://deltavsoft.com/w/RcfUserGuide/1.3/rcf_user_guide/ServerCallbacks.html
Original comment by jarl.lin...@gmail.com
on 22 Dec 2010 at 7:19
1. Do you have any plans to provide transport filters for publisher/subscriber
services?
2. Can you please recommend correct way of controlling client connections? I
want my server to be able to track how many active connections it has and
status of those connections(like pinging the clients, without adding server
implementation in clients)? I looked at the Ping and PingBackService, but if
I'm not mistaken that's all provided to check the connection from the client
side?
Thanks.
Original comment by zoltan.b...@gmail.com
on 22 Dec 2010 at 1:41
1) Pub/sub with transport filters is on the list of features to implement, but
I can't say when it will be done.
2) On the server side, you can keep track of client connections by using client
disconnect notifications:
http://deltavsoft.com/w/RcfUserGuide/1.3/rcf_user_guide/FAQ.html#rcf_user_guide.
FAQ.Programming.ClientDisconnect
So your application can be notified whenever clients connect and disconnect,
and keep track of the number of active connections, and any data you want to
associate with them.
Normally you can't ping a client connection from the server side. If the client
process closes the connection (which will happen if the client crashes or
exits), then the server detects it and destroys the corresponding RcfSession,
which your application can hook into, as above.
There is also a SessionTimeoutService that will kill off client connections
that have been idle for some time.
If you need to actually ping clients from your server, you would need to use
server-to-client callback connections.
Original comment by jarl.lin...@gmail.com
on 31 Dec 2010 at 2:13
Original issue reported on code.google.com by
zoltan.b...@gmail.com
on 20 Dec 2010 at 3:43