TCPServer's CAReceiveMessage fix
[platform/upstream/iotivity.git] / resource / csdk / connectivity / inc / catcpadapter.h
index db832e5..da1a91d 100644 (file)
@@ -36,6 +36,14 @@ extern "C"
 {
 #endif
 
+
+typedef enum CAProtocol
+{
+    UNKNOWN = 0,
+    TLS,
+    COAP
+} CAProtocol_t;
+
 /**
  * TCP Session Information for IPv4 TCP transport
  */
@@ -45,6 +53,8 @@ typedef struct
     int fd;                             /**< file descriptor info */
     unsigned char* data;                /**< received data from remote device */
     size_t len;                         /**< received data length */
+    size_t totalLen;                    /**< total data length required to receive */
+    CAProtocol_t protocol;              /**< application-level protocol */
 } CATCPSessionInfo_t;
 
 /**