RetroArch
Classes | Macros | Functions | Variables
udp.h File Reference
#include "lwip/arch.h"
#include "lwip/pbuf.h"
#include "lwip/inet.h"
#include "lwip/ip.h"
Include dependency graph for udp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  udp_hdr
 
struct  udp_pcb
 

Macros

#define UDP_HLEN   8
 
#define UDP_FLAGS_NOCHKSUM   0x01U
 
#define UDP_FLAGS_UDPLITE   0x02U
 
#define UDP_FLAGS_CONNECTED   0x04U
 
#define udp_flags(pcb)   ((pcb)->flags)
 
#define udp_setflags(pcb, f)   ((pcb)->flags = (f))
 
#define udp_debug_print(udphdr)
 

Functions

struct udp_pcbudp_new (void)
 
void udp_remove (struct udp_pcb *pcb)
 
err_t udp_bind (struct udp_pcb *pcb, struct ip_addr *ipaddr, u16_t port)
 
err_t udp_connect (struct udp_pcb *pcb, struct ip_addr *ipaddr, u16_t port)
 
void udp_disconnect (struct udp_pcb *pcb)
 
void udp_recv (struct udp_pcb *pcb, void(*recv)(void *arg, struct udp_pcb *upcb, struct pbuf *p, struct ip_addr *addr, u16_t port), void *recv_arg)
 
err_t udp_sendto (struct udp_pcb *pcb, struct pbuf *p, struct ip_addr *dst_ip, u16_t dst_port)
 
err_t udp_send (struct udp_pcb *pcb, struct pbuf *p)
 
void udp_input (struct pbuf *p, struct netif *inp)
 
void udp_init (void)
 

Variables

struct udp_hdr PACK_STRUCT_STRUCT
 

Macro Definition Documentation

◆ udp_debug_print

#define udp_debug_print (   udphdr)

◆ udp_flags

#define udp_flags (   pcb)    ((pcb)->flags)

◆ UDP_FLAGS_CONNECTED

#define UDP_FLAGS_CONNECTED   0x04U

◆ UDP_FLAGS_NOCHKSUM

#define UDP_FLAGS_NOCHKSUM   0x01U

◆ UDP_FLAGS_UDPLITE

#define UDP_FLAGS_UDPLITE   0x02U

◆ UDP_HLEN

#define UDP_HLEN   8

◆ udp_setflags

#define udp_setflags (   pcb,
  f 
)    ((pcb)->flags = (f))

Function Documentation

◆ udp_bind()

err_t udp_bind ( struct udp_pcb pcb,
struct ip_addr ipaddr,
u16_t  port 
)
Here is the caller graph for this function:

◆ udp_connect()

err_t udp_connect ( struct udp_pcb pcb,
struct ip_addr ipaddr,
u16_t  port 
)
Here is the caller graph for this function:

◆ udp_disconnect()

void udp_disconnect ( struct udp_pcb pcb)
Here is the caller graph for this function:

◆ udp_init()

void udp_init ( void  )
Here is the caller graph for this function:

◆ udp_input()

void udp_input ( struct pbuf p,
struct netif inp 
)
Here is the caller graph for this function:

◆ udp_new()

struct udp_pcb* udp_new ( void  )
Here is the caller graph for this function:

◆ udp_recv()

void udp_recv ( struct udp_pcb pcb,
void(*)(void *arg, struct udp_pcb *upcb, struct pbuf *p, struct ip_addr *addr, u16_t port recv,
void recv_arg 
)
Here is the caller graph for this function:

◆ udp_remove()

void udp_remove ( struct udp_pcb pcb)
Here is the caller graph for this function:

◆ udp_send()

err_t udp_send ( struct udp_pcb pcb,
struct pbuf p 
)
Here is the caller graph for this function:

◆ udp_sendto()

err_t udp_sendto ( struct udp_pcb pcb,
struct pbuf p,
struct ip_addr dst_ip,
u16_t  dst_port 
)

Variable Documentation

◆ PACK_STRUCT_STRUCT

struct udp_hdr PACK_STRUCT_STRUCT