How do I detect tcp connections, from client-side code?

RCF support and general discussion.
Post Reply
MyongKyun
Posts: 7
Joined: Tue Apr 30, 2013 1:09 am

How do I detect tcp connections, from client-side code?

Post by MyongKyun »

Hi

When connection is establised and disconnected,

Is there connection/disconnection event callback at client side? or something?

Regards
Mr.Lim

MyongKyun
Posts: 7
Joined: Tue Apr 30, 2013 1:09 am

Re: How do I detect tcp connections, from client-side code?

Post by MyongKyun »

Hi

When will you give me the answer?

if you need more detail description, please let me know.

Thanks

jarl
Posts: 238
Joined: Mon Oct 03, 2011 4:53 am
Contact:

Re: How do I detect tcp connections, from client-side code?

Post by jarl »

Hi,

Apologies for missing your post - I usually get email notifications when posts are made but missed this one for some reason.

On the client side, there is generally not a callback for connecting or disconnecting. You can explicitly connect or disconnect a client:

Code: Select all

RcfClient<...> client(...);
client.getClientStub().connect();
client.getClientStub().disconnect();
If you have a longstanding connection to the server and you want to know at some point if it is still up, you'll need to ping it yourself.

If you can give me some more details of what you're trying to do, I can probably give you some tips.
Kind Regards

Jarl Lindrud
Delta V Software
http://www.deltavsoft.com

Post Reply