hccall_net.h
803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef __HCCALL_NET_H__
#define __HCCALL_NET_H__
#include "dsm_socket.h"
#include "dsm_http.h"
typedef struct HCCALL_DOWNLOADER_T
{
int32 total;
int32 accept;
int32 hFile;
}HCCALL_DOWNLOADER;
typedef enum
{
HCCALL_NET_STATE_IDLE = 0X00,
HCCALL_NET_STATE_DIALING,
HCCALL_NET_STATE_CONNECTING,
HCCALL_NET_STATE_CONNECTED,
HCCALL_NET_STATE_ERROR,
HCCALL_NET_STATE_UNKNOWN
}HCCALL_NETSTATE;
typedef struct HCCALL_HttpEngine_T
{
PDSM_SOCKET socket;
int32 respCode;
HCCALL_NETSTATE state;
uint32 buscode;
uint16 DnsRetry;
HCCALL_DOWNLOADER downloader;
}HCCALL_HttpEngine, *PHCCALL_HttpEngine;
int32 hccall_net_dial(int32 WifiId);
int32 hccall_net_close(void);
#endif
typedef struct HCCALL_CONFIG_T
{
U16 functionset;
}HCCALL_CONFIG;
extern HCCALL_CONFIG g_hccall_confg;