41#include "lwip/ip_addr.h"
51#ifdef PACK_STRUCT_USE_INCLUDES
62#ifdef PACK_STRUCT_USE_INCLUDES
66#define UDP_FLAGS_NOCHKSUM 0x01U
67#define UDP_FLAGS_UDPLITE 0x02U
68#define UDP_FLAGS_CONNECTED 0x04U
69#define UDP_FLAGS_MULTICAST_LOOP 0x08U
87typedef void (*udp_recv_fn)(
void *
arg,
struct udp_pcb *pcb,
struct pbuf *
p,
101 u16_t local_port, remote_port;
110 u16_t chksum_len_rx, chksum_len_tx;
119extern struct udp_pcb *udp_pcbs;
123struct udp_pcb * udp_new (
void);
124void udp_remove (
struct udp_pcb *pcb);
129void udp_disconnect (
struct udp_pcb *pcb);
130void udp_recv (
struct udp_pcb *pcb, udp_recv_fn
recv,
132err_t udp_sendto_if (
struct udp_pcb *pcb,
struct pbuf *
p,
135err_t udp_sendto (
struct udp_pcb *pcb,
struct pbuf *
p,
137err_t udp_send (
struct udp_pcb *pcb,
struct pbuf *
p);
139#if LWIP_CHECKSUM_ON_COPY
140err_t udp_sendto_if_chksum(
struct udp_pcb *pcb,
struct pbuf *
p,
144err_t udp_sendto_chksum(
struct udp_pcb *pcb,
struct pbuf *
p,
147err_t udp_send_chksum(
struct udp_pcb *pcb,
struct pbuf *
p,
151#define udp_flags(pcb) ((pcb)->flags)
152#define udp_setflags(pcb, f) ((pcb)->flags = (f))
155void udp_input (
struct pbuf *
p,
struct netif *inp);
160void udp_debug_print(
struct udp_hdr *
udphdr);
162#define udp_debug_print(udphdr)
#define PACK_STRUCT_BEGIN
#define PACK_STRUCT_FIELD(x)
INT WSAAPI recv(IN SOCKET s, OUT CHAR FAR *buf, IN INT len, IN INT flags)
#define PACK_STRUCT_STRUCT
GLenum const GLvoid * addr
static u32_t chksum(void *dataptr, u16_t len)
typedefPACK_STRUCT_END struct ip_addr ip_addr_t
static unsigned __int64 next