Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: ThingPlug_WiFi_Example ThingPlug_WiFi_Example_2
Fork of SNICInterface by
Diff: SNIC/SNIC_Core.h
- Revision:
- 32:ae95309643aa
- Parent:
- 31:15c22824cc46
- Child:
- 33:33f1bc919486
diff -r 15c22824cc46 -r ae95309643aa SNIC/SNIC_Core.h
--- 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
{
