for EthernetInterface library compatibility.\\ ** Unoffical fix. may be a problem. **

Dependents:   SNIC-httpclient-example SNIC-ntpclient-example

Fork of SNICInterface by muRata

Revision:
32:ae95309643aa
Parent:
31:15c22824cc46
Child:
33:33f1bc919486
--- a/SNIC/SNIC_Core.h	Thu May 29 03:23:21 2014 +0000
+++ b/SNIC/SNIC_Core.h	Fri May 30 08:30:40 2014 +0000
@@ -28,6 +28,7 @@
 #define MAX_SOCKET_ID   5
 
 #define MEMPOOL_UART_RECV_NUM 2
+#define SNIC_UART_RECVBUF_SIZE         2048
 
 /** Wi-Fi security
  */
@@ -75,6 +76,7 @@
 friend class C_SNIC_WifiInterface;
 friend class TCPSocketConnection;
 friend class Socket;
+friend class TCPSocketServer;
 
 private:
     /** Wi-Fi Network type
@@ -92,6 +94,8 @@
         CircBuffer<char>    *recvbuf_p;
         bool                is_connected;
         bool                is_received;
+        int                 parent_socket;
+        bool                is_accept;
     }tagCONNECT_INFO_T;
 
     /** GEN_FW_VER_GET_REQ Command */
@@ -158,6 +162,16 @@
         unsigned char payload_len[2];
     }tagSNIC_TCP_SEND_FROM_SOCKET_REQ_T;
     
+    /** SNIC_TCP_CREATE_CONNECTION_REQ */
+    typedef struct
+    {
+        unsigned char cmd_sid;
+        unsigned char seq;
+        unsigned char socket_id;
+        unsigned char recv_bufsize[2];
+        unsigned char max_client;
+    }tagSNIC_TCP_CREATE_CONNECTION_REQ_T;
+
     /** SNIC_TCP_CONNECT_TO_SERVER_REQ */
     typedef struct
     {
@@ -170,6 +184,14 @@
         unsigned char timeout;
     }tagSNIC_TCP_CONNECT_TO_SERVER_REQ_T;
     
+    /** SNIC_GET_DHCP_INFO_REQ */
+    typedef struct
+    {
+        unsigned char cmd_sid;
+        unsigned char seq;
+        unsigned char interface;
+    }tagSNIC_GET_DHCP_INFO_REQ_T;
+    
     /** WIFI_ON_REQ Command */
     typedef struct 
     {