Re: client status
- From: Kuang-Chun Cheng <kccheng soliton com tw>
- To: orbit <orbit-list gnome org>
- Subject: Re: client status
- Date: Mon, 28 Apr 2003 18:45:17 +0800
Hi Michael,
Thanks for the reply.
On my ORBit2 server, when client call, eg clientOpenService(),
the server will call "malloc()" to request some memory. The resources
will be free when client call clientCloseService(). However,
sometime, client will exit abnormally without calling clientCloseService(),
for example when client reboot. So I need an async notification to know if
client still connected so server side can free the requested resources.
Does ORBit2 has "Interceptor" which I found in omniORB ?
KC
kccheng@openate.com
Michael Meeks wrote:
>Hi Kuang-Chun,
>
>On Sat, 2003-04-26 at 12:40, Kuang-Chun Cheng wrote:
>
>
>>>From CORBA/ORBit2 servant side, how could I know client
>>connection is achieved. And how should I know client
>>already dis-connected.
>>
>>Does anything like "signal" between servant and client ?
>>
>>
>
> You can use the ORBit_small_listen API in orbit-small.h; that should
>tell you about diconections; for connection - you can simply invoke a
>non-async method on the object, and if it completes successfully - it
>got through some connection ;-)
>
> What are you trying to achieve ?
>
> Regards,
>
> Michael.
>
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]