keepalive for coap over tcp
[platform/upstream/iotivity.git] / resource / csdk / connectivity / inc / catcpadapter.h
index b62df78..2528df1 100644 (file)
@@ -28,6 +28,7 @@
 #include "cacommon.h"
 #include "caadapterinterface.h"
 #include "cathreadpool.h"
+#include "cainterface.h"
 
 #ifdef __cplusplus
 extern "C"
@@ -150,6 +151,15 @@ CAResult_t CAStopTCP();
  */
 void CATerminateTCP();
 
+/**
+ * Set connected callback and disconnected callback to process KeepAlive.
+ * connection informations are delivered these callbacks.
+ * @param[in]   ConnHandler     Connected callback.
+ * @param[in]   DisconnHandler  Disconnected Callback.
+ */
+void CATCPSetKeepAliveCallbacks(CAKeepAliveConnectedCallback ConnHandler,
+                                CAKeepAliveDisconnectedCallback DisconnHandler);
+
 #ifdef __cplusplus
 } /* extern "C" */
 #endif