File nut/net/udpsock.c


Included Files


Global Variable udpSocketList

UDPSOCKET* udpSocketList
Visible in:   nut/net/netdebug.c
    nut/net/udpsock.c
Used in: NutDumpSocketList() nut/net/netdebug.c
  NutUdpCreateSocket() nut/net/udpsock.c
  NutUdpDestroySocket() nut/net/udpsock.c
  NutUdpFindSocket() nut/net/udpsock.c

Local Variables

last_local_port
static uint16_t last_local_port
Used in: NutUdpCreateSocket()  

registered
static uint_fast8_t registered

Used in: NutUdpCreateSocket()  

Global Function NutUdpCreateSocket()

UDPSOCKET* NutUdpCreateSocket ( uint16_t port )
Prototyped in: nut/include/sys/socket.h
Calls: NutRegisterIpHandler() nut/net/ipdemux.c
  __byte_swap2() nut/boot/appload/utils.c
  NutGetMillis(), calloc()
Called by: NotifyTask() nut/app/httpd_upnp/upnp.c
  NutAppMain() nut/app/snmpd/snmpd.c
  SSDPTask() nut/app/httpd_upnp/upnp.c
  socket() nut/net/bsd_socket.c
  tftp_receive() nut/boot/at91sam7x_bootloader/tftp.c
References Functions: NutUdpInput() nut/net/udpin.c
References Variables: last_local_port nut/net/udpsock.c
  registered nut/net/udpsock.c
  udpSocketList nut/net/udpsock.c

Global Function NutUdpDestroySocket()

int NutUdpDestroySocket ( UDPSOCKET* sock )
Prototyped in: nut/include/sys/socket.h
Calls: NutNetBufFree() nut/dev/netbuf.c
  free() nut/crt/malloc.c
Called by: NutAppMain() nut/app/snmpd/snmpd.c
  closesocket() nut/net/bsd_socket.c
  socket() nut/net/bsd_socket.c
References Variables: udpSocketList nut/net/udpsock.c

Global Function NutUdpError()

int NutUdpError ( UDPSOCKET* sock, uint32_t* addr, uint16_t* port )
Prototyped in: nut/include/sys/socket.h
Calls: __byte_swap2() nut/boot/appload/utils.c
Called by: NutAppMain() nut/app/icmp-udp/icmp-udp.c
  UDPReceiver() nut/app/icmp-udp/icmp-udp.c

Global Function NutUdpFindSocket()

UDPSOCKET* NutUdpFindSocket ( uint16_t port )
Prototyped in: nut/include/sys/socket.h
Called by: NutIcmpUnreach() nut/net/icmpin.c
  NutUdpInput() nut/net/udpin.c
References Variables: udpSocketList nut/net/udpsock.c

Global Function NutUdpGetSockOpt()

int NutUdpGetSockOpt ( UDPSOCKET* sock, int optname, void* optval, int optlen )
Prototyped in: nut/include/sys/socket.h
Called by: getsockopt() nut/net/bsd_socket.c

Global Function NutUdpReceiveFrom()

int NutUdpReceiveFrom ( UDPSOCKET* sock, uint32_t* addr, uint16_t* port, void* data, int size, uint32_t timeout )
Prototyped in: nut/include/sys/socket.h
Calls: NutNetBufFree() nut/dev/netbuf.c
  __byte_swap2() nut/boot/appload/utils.c
  memcpy() nut/c/string/memcpy.c
  NutEventWait()
Called by: SSDPTask() nut/app/httpd_upnp/upnp.c
  UDPReceiver() nut/app/icmp-udp/icmp-udp.c
  recvfrom() nut/net/bsd_socket.c
  tftp_receive() nut/boot/at91sam7x_bootloader/tftp.c

Global Function NutUdpSendTo()

int NutUdpSendTo ( UDPSOCKET* sock, uint32_t addr, uint16_t port, void* data, int len )
Prototyped in: nut/include/sys/socket.h
Calls: NutNetBufAlloc() nut/dev/netbuf.c
  NutNetBufFree() nut/dev/netbuf.c
  NutUdpOutput() nut/net/udpout.c
  memcpy() nut/c/string/memcpy.c
Called by: NutAppMain() nut/app/icmp-udp/icmp-udp.c
  SSDPTask() nut/app/httpd_upnp/upnp.c
  SendNotifyAliveChunk() nut/app/httpd_upnp/upnp.c
  sendto() nut/net/bsd_socket.c
  tftp_receive() nut/boot/at91sam7x_bootloader/tftp.c

Global Function NutUdpSetSockOpt()

int NutUdpSetSockOpt ( UDPSOCKET* sock, int optname, const void* optval, int optlen )
Prototyped in: nut/include/sys/socket.h
Called by: NutAppMain() nut/app/snmpd/snmpd.c
  setsockopt() nut/net/bsd_socket.c

Global Function NutUdpSetSocketError()

int NutUdpSetSocketError ( UDPSOCKET* sock, uint32_t remote_addr, uint16_t remote_port, uint16_t error )
Prototyped in: nut/include/sys/socket.h
Calls: NutEventPost()
Called by: NutIcmpUnreach() nut/net/icmpin.c