The point is that the OCStop call is a biproduct of the C SDK, and the
higher level languages just use destructors to manage this.  When
developing an Android application, you should have zero need to call
OCStop, since it is called for you.

I don't think you'll see any effort to add this functionality to the C++
or Android stack (in part because it would cause some pretty nasty side
effects to allow it!), since there hasn't been a need.

SimpleServer/SimpleClient do not call OCStop directly, however they WILL
on shutdown (thanks to the lifetime of the OC::OCPlatform and
Client/Server wrappers).

On Fri, 2015-11-06 at 02:28 +0000, JiHwan Seo wrote:
> Hi Tim and Jon (to Jon A Cruz)
> 
>  
> 
> you mean since there is no way to call stop from OCPlatform.
> 
> Android API does not provide something to call the method?
> 
>  
> 
> once I have confirmed that
> 
> SimpleServer and SimpleClient for Android also doesn't call terminate
> logic of base.
> 
> if so, it's critical issue. Android JNI developer of base layer should
> have checked it previouslly.
> 
>  
> 
> Actually, I don't understand why InProcClientWrapper and
> InProcServerWrapper is need.
> 
> why OCStop(for terminate) can be called from only it.
> 
>  
> 
> I think if initial of base-layer can be called from OCPlatform.c,
> 
> to call terminate logic have to be called from same OCPlatform.c.
> 
> because other developer can be gaven some confusion and there is no
> enough comment in the codes
> 
> Android API is same..
> 
>  
> 
> please let me know who can be supported it.
> 
>  
> 
> Jihwan
> 
>  
> 
> ------- Original Message -------
> 
> Sender : Kourt, Tim A<tim.a.kourt at intel.com>
> 
> Date : 2015-11-06 08:30 (GMT+09:00)
> 
> Title : RE: [dev] I'm tring to use Android API for OcPlatform
> 
>  
> 
> Hi Jihwan,
> 
> The C++ SDK does not provide an explicit API to ?stop? platform,
> instead it encapsulates OCStop() call into the destructors of
> InProcServerWrapper and InProcClientWrapper.
> 
> If such a call is added into the C++ SDK it should not be hard to
> propagate it to the Android API along with some additional android
> specific cleanups.
> 
> Thanks,
> 
> Tim Kourt
> 
>  
> 
> From: iotivity-dev-bounces at lists.iotivity.org
> [mailto:iotivity-dev-bounces at lists.iotivity.org] On Behalf Of ???
> Sent: Wednesday, November 4, 2015 8:14 PM
> To: iotivity-dev at lists.iotivity.org
> Subject: [dev] I'm tring to use Android API for OcPlatform
> 
> 
>  
> 
> Hi All
> 
>  
> 
> I'm tring to use Android API for OcPlatform.
> 
> but i guess there is no way to call OCStop().
> 
> and any termination logic is not ran now.
> 
> if not, could you tell me how to call OCStop() from Android API??
> 
>  
> 
> - Jihwan -
> 
>  
> 
>  
> 
>  
> 
> 
> 
> 
> 
> _______________________________________________
> iotivity-dev mailing list
> iotivity-dev at lists.iotivity.org
> https://lists.iotivity.org/mailman/listinfo/iotivity-dev

Reply via email to