52 |
#define UDP_FLAGS_CONNECTED 0x04U |
#define UDP_FLAGS_CONNECTED 0x04U |
53 |
|
|
54 |
struct udp_pcb { |
struct udp_pcb { |
55 |
|
/* Common members of all PCB types */ |
56 |
|
IP_PCB; |
57 |
|
|
58 |
|
/* Protocol specific PCB members */ |
59 |
|
|
60 |
struct udp_pcb *next; |
struct udp_pcb *next; |
61 |
|
|
62 |
struct ip_addr local_ip, remote_ip; |
u8_t flags; |
63 |
u16_t local_port, remote_port; |
u16_t local_port, remote_port; |
64 |
|
|
|
u8_t flags; |
|
65 |
u16_t chksum_len; |
u16_t chksum_len; |
66 |
|
|
67 |
void (* recv)(void *arg, struct udp_pcb *pcb, struct pbuf *p, |
void (* recv)(void *arg, struct udp_pcb *pcb, struct pbuf *p, |