X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Fcsdk%2Fconnectivity%2Finc%2Fcainterfacecontroller.h;h=fedc1a77284f6e0a64725c8cbc490dbe99046733;hb=7f00f942c39b7bc27c7eeecf213a239c3fe4173c;hp=4f48452adec1ea0b8317bdabd2d09f97ec1e1354;hpb=edcfc3d2329da7b914771c0dcff5f42c9b74fd93;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/csdk/connectivity/inc/cainterfacecontroller.h b/resource/csdk/connectivity/inc/cainterfacecontroller.h index 4f48452..fedc1a7 100644 --- a/resource/csdk/connectivity/inc/cainterfacecontroller.h +++ b/resource/csdk/connectivity/inc/cainterfacecontroller.h @@ -50,8 +50,9 @@ void CAInitializeAdapters(); * Initializes different adapters based on the compilation flags. * @param[in] handle thread pool handle created by message handler * for different adapters. + * @param[in] transportType transport type to initialize. */ -void CAInitializeAdapters(ca_thread_pool_t handle); +void CAInitializeAdapters(ca_thread_pool_t handle, CATransportAdapter_t transportType); #endif /** @@ -170,6 +171,41 @@ void CATerminateAdapters(); CAResult_t CAReadData(); #endif +#ifdef IP_ADAPTER +/** + * Set multicast time to live value to control the scope of the multicasts. + * @param[in] ttl To be set to any value from 0 to 255. + * + * @return ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h). + */ +CAResult_t CASetMulticastTTL(size_t ttl); + +/** + * Get multicast time to live value. + * @param[out] ttl TTL pointer to get the stored multicast time to live. + * + * @return ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h). + */ +CAResult_t CAGetMulticastTTL(size_t *ttl); +#endif + +#ifdef TCP_ADAPTER +/** + * Disconnect TCP session. + * When there is no transmission for a long time. + * Some carrier vendor is blocking data. + * Thur, TCP Session is cleaned through this function. + * @param[in] endpoint endpoint information to disconnect. + */ +CAResult_t CADisconnectSession(const CAEndpoint_t *endpoint); +#endif + +#ifdef LE_ADAPTER +void CAStartGattServer(); + +void CAStopGattServer(); +#endif + #ifdef __cplusplus } /* extern "C" */ #endif