forked from Hamhackin/espBode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
esp_network.h
83 lines (67 loc) · 1.46 KB
/
esp_network.h
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#ifndef _ESP_NETWORK_H_
#define _ESP_NETWORK_H_
typedef struct
{
uint32_t frag;
uint32_t xid;
uint32_t msg_type;
uint32_t rpc_version;
uint32_t program;
uint32_t program_version;
uint32_t procedure;
uint32_t credentials_l;
uint32_t credentials_h;
uint32_t verifier_l;
uint32_t verifier_h;
}rpcreq_header;
typedef struct
{
uint32_t frag;
uint32_t xid;
uint32_t msg_type;
uint32_t reply_state;
uint32_t verifier_l;
uint32_t verifier_h;
uint32_t rpc_status;
}rpcresp_header;
typedef struct
{
rpcreq_header header;
uint32_t getport_program;
uint32_t getport_version;
uint32_t getport_protocol;
uint32_t getport_port;
}rpcreq_getport;
typedef struct
{
rpcresp_header header;
uint32_t vxi_port;
}rpcresp_getport;
typedef struct
{
rpcreq_header header;
uint32_t linkId;
uint32_t ioTimeout;
uint32_t lockTimeout;
uint32_t flags;
uint32_t dataLen;
uint8_t data[];
}rcpreq_devReadWrite;
typedef struct
{
rpcresp_header header;
uint32_t errorCode;
uint32_t reason;
uint32_t dataLen;
uint8_t data[];
}rcpresp_devReadWrite;
typedef struct
{
rpcresp_header header;
uint32_t errorCode;
uint32_t linkId;
uint32_t abortPort;
uint32_t maxReceiveSize;
}rpcresp_createLink;
uint8_t handlePacket(WiFiClient client);
#endif /* _ESP_NETWORK_H_ */