support 4G adapter and ec200t device

This commit is contained in:
Liu_Weichao
2021-10-13 17:57:34 +08:00
parent 2aa5c0f0ba
commit ab578dfe0e
8 changed files with 218 additions and 120 deletions
+10 -4
View File
@@ -42,7 +42,7 @@ extern "C" {
#ifdef CONNECTION_FRAMEWORK_DEBUG
#define ADAPTER_DEBUG printf
#else
#define ADAPTER_DEBUF
#define ADAPTER_DEBUG
#endif
struct Adapter;
@@ -52,8 +52,14 @@ typedef struct AdapterProductInfo *AdapterProductInfoType;
struct Socket
{
int id;
struct Adapter *adapter;
uint8_t type; ///< socket type:DGRAM->UDP,STREAM->TCP
uint8_t protocal; ///< udp or tcp
unsigned short listen_port; ///< 0-65535
uint8_t socket_id; ///< socket id
uint8_t recv_control; ///< receive control
uint8_t af_type; ///< IPv4 or IPv6
char *src_ip_addr; ///< source P address
char *dst_ip_addr; ///< destination IP address
};
enum AdapterType
@@ -156,7 +162,7 @@ struct Adapter
struct AdapterProductInfo *info;
ATAgentType agent;
//struct Socket *socket;
struct Socket socket;
enum NetProtocolType net_protocol;
enum NetRoleType net_role;