#if defined(__TIZEN__)
CAResult_t CAGetTCPIPHeader(CATransportAdapter_t adapter, int flag, TCPHeaderInfo* info);
+#ifdef TCP_ADAPTER
/**
* Enables keep-alive on the given endpoint & configures it with user defined values.
*
* @return - Direct 'errno' value from kernel
*/
int CAGetTCPLastErrorCode();
+#endif
/**
* Set the interface to be used for outgoing TCP packets.
return res;
}
+#ifdef TCP_ADAPTER
CAResult_t CASetTCPKeepAlive(const CAEndpoint_t *endpoint, int time, int cnt, int intvl)
{
OIC_LOG(DEBUG, TAG, "CASetTCPKeepAlive");
OIC_LOG(DEBUG, TAG, "CAGetTCPLastErrorCode");
return CATCPGetLastErrorCode();
}
-
+#endif
#endif