- char addr[MAX_ADDR_STR_SIZE_CA]; /**< TCP Server address */
- CASocket_t u4tcp; /**< TCP Server port */
-} CATCPServerInfo_t;
+ CASecureEndpoint_t sep; /**< secure endpoint information */
+ int fd; /**< file descriptor info */
+ unsigned char* data; /**< received data from remote device */
+ size_t len; /**< received data length */
+ size_t totalLen; /**< total coap data length required to receive */
+ size_t bufLen; /**< Buffer length. Buffer will be grown dynamically with respect to data received. */
+ unsigned char tlsdata[18437]; /**< tls data(rfc5246: TLSCiphertext max (2^14+2048+5)) */
+ size_t tlsLen; /**< received tls data length */
+ CAProtocol_t protocol; /**< application-level protocol */
+ CATCPConnectionState_t state; /**< current tcp session state */
+ bool isClient; /**< Host Mode of Operation. */
+} CATCPSessionInfo_t;