Microchip® Advanced Software Framework

tstrConnectReply Struct Reference

Connect Reply, contains sock number and error value.

#include <m2m_socket_host_if.h>

Data Fields

union {
   struct {
      uint8   u8ErrCode
 
      uint8   u8ErrSource
 
   } 
 
   uint16   u16AppDataOffset
 
}; 
 
union {
   struct {
      uint8   u8ErrCode
 
      uint8   u8ErrSource
 
   } 
 
   uint16   u16AppDataOffset
 
}; 
 
sint8 s8Error
 
SOCKET sock
 

union { ... }
union { ... }
sint8 tstrConnectReply::s8Error

0 for successful connection, in which case u16AppDataOffset is valid. Negative for failed connection, in which case u8ErrorType and u8ErrorDetail may give more info.

Referenced by m2m_ip_cb().

SOCKET tstrConnectReply::sock

Referenced by m2m_ip_cb().

uint16 tstrConnectReply::u16AppDataOffset

In further packet send requests the host interface should put the user application data at this offset in the allocated shared data packet.

Referenced by m2m_ip_cb().

uint8 tstrConnectReply::u8ErrCode

For TLS Alerts, this is the Alert ID.

Referenced by m2m_ip_cb().

uint8 tstrConnectReply::u8ErrSource

0: No detail 1: TLS Alert received from peer 2: TLS Alert generated locally

Referenced by m2m_ip_cb().