34 #ifndef __M2M_SOCKET_HOST_IF_H__    35 #define __M2M_SOCKET_HOST_IF_H__    59 #define HOSTNAME_MAX_SIZE                       (100)    62 #define SSL_MAX_OPT_LEN                         HOSTNAME_MAX_SIZE    66 #define SOCKET_CMD_INVALID                                      0x00    72 #define SOCKET_CMD_BIND                                 0x41    78 #define SOCKET_CMD_LISTEN                                       0x42    84 #define SOCKET_CMD_ACCEPT                                       0x43    90 #define SOCKET_CMD_CONNECT                              0x44    96 #define SOCKET_CMD_SEND                                 0x45   102 #define SOCKET_CMD_RECV                                 0x46   108 #define SOCKET_CMD_SENDTO                                       0x47   114 #define SOCKET_CMD_RECVFROM                             0x48   120 #define SOCKET_CMD_CLOSE                                        0x49   126 #define SOCKET_CMD_DNS_RESOLVE                  0x4A   132 #define SOCKET_CMD_SSL_CONNECT                  0x4B   138 #define SOCKET_CMD_SSL_SEND                             0x4C       144 #define SOCKET_CMD_SSL_RECV                             0x4D   150 #define SOCKET_CMD_SSL_CLOSE                            0x4E   156 #define SOCKET_CMD_SET_SOCKET_OPTION            0x4F   162 #define SOCKET_CMD_SSL_CREATE                           0x50   167 #define SOCKET_CMD_SSL_SET_SOCK_OPT                     0x51   170 #define SOCKET_CMD_PING                                         0x52   176 #define PING_ERR_SUCCESS                                        0   177 #define PING_ERR_DEST_UNREACH                           1   178 #define PING_ERR_TIMEOUT                                        2 
signed short sint16
Range of values between -32768 to 32767. 
 
Connect Reply, contains sock number and error value. 
 
signed char sint8
Range of values between -128 to 127. 
 
tstrSockAddr tstrUIPSockAddr
 
WINC3400 IoT Application Interface Internal Types. 
 
tstrSockAddr strRemoteAddr
 
unsigned short uint16
Range of values between 0 to 65535. 
 
DNS Reply, contains hostName and HostIP. 
 
#define HOSTNAME_MAX_SIZE
 
unsigned long uint32
Range of values between 0 to 4294967295. 
 
unsigned char uint8
Range of values between 0 to 255. 
 
BSD compatible socket interface. 
 
Send Reply, contains socket number and number of sent bytes. 
 
sint8 SOCKET
Definition for socket handler data type. Socket ID,used with all socket operations to uniquely identi...