Page 1 of 1

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

Posted: Tue May 28, 2013 6:26 pm
by MyongKyun
Hi

When connection is establised and disconnected,

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

Regards
Mr.Lim

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

Posted: Mon Jun 03, 2013 5:03 pm
by MyongKyun
Hi

When will you give me the answer?

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

Thanks

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

Posted: Tue Jun 04, 2013 12:25 am
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.