Customized SNICInterface

Fork of NySNICInterface by Ryo Iizuka

Revision:
13:53e6471d5753
Parent:
12:0254eaccfda2
Child:
14:54378c96d285
--- a/SNIC/SNIC_Core.h	Tue Mar 25 01:42:25 2014 +0000
+++ b/SNIC/SNIC_Core.h	Tue Mar 25 02:21:11 2014 +0000
@@ -89,10 +89,20 @@
     unsigned char  cmd_sid;
     unsigned char  seq;
     unsigned char  bind;
-    unsigned int   local_addr;
-    unsigned short local_port;
+    unsigned char  local_addr[4];
+    unsigned char  local_port[2];
 }tagSNIC_TCP_CREATE_SOCKET_REQ_T;
 
+/** SNIC_TCP_SEND_FROM_SOCKET_REQ */
+typedef struct
+{
+    unsigned char cmd_sid;
+    unsigned char seq;
+    unsigned char socket_id;
+    unsigned char option;
+    unsigned char payload_len[2];
+}tagSNIC_TCP_SEND_FROM_SOCKET_REQ_T;
+
 /** SNIC_TCP_CONNECT_TO_SERVER_REQ */
 typedef struct
 {
@@ -102,12 +112,7 @@
     unsigned char remote_addr[4];
     unsigned char remote_port[2];
     unsigned char recv_bufsize[2];
-/*
-    unsigned int   remote_addr;
-    unsigned short remote_port;
-    unsigned short recv_bufsize;
-*/
-    unsigned char  timeout;
+    unsigned char timeout;
 }tagSNIC_TCP_CONNECT_TO_SERVER_REQ_T;
 
 /** WIFI_ON_REQ Command */