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 u_short last_local_port
Used in: NutUdpCreateSocket()  

Global Function NutUdpCreateSocket()

UDPSOCKET* NutUdpCreateSocket ( u_short port )
Prototyped in: nut/include/sys/socket.h
Calls: NutHeapAllocClear() nut/os/heap.c
  __byte_swap2()
Called by: DiscoveryResponder() nut/pro/discover.c
  NutDhcpClient() nut/pro/dhcpc.c
  NutDnsGetResource() nut/pro/resolv.c
  NutSNTPGetTime() nut/pro/sntp.c
  NutWinsNameQuery() nut/pro/wins.c
  openlog() nut/pro/syslog.c
References Variables: last_local_port nut/net/udpsock.c
  udpSocketList nut/net/udpsock.c

Global Function NutUdpDestroySocket()

int NutUdpDestroySocket ( UDPSOCKET* sock )
Prototyped in: nut/include/sys/socket.h
Calls: NutHeapFree() nut/os/heap.c
  NutNetBufFree() nut/dev/netbuf.c
Called by: NutDhcpClient() nut/pro/dhcpc.c
  NutDnsGetResource() nut/pro/resolv.c
  NutSNTPGetTime() nut/pro/sntp.c
  closelog() nut/pro/syslog.c
References Variables: udpSocketList nut/net/udpsock.c

Global Function NutUdpFindSocket()

UDPSOCKET* NutUdpFindSocket ( u_short port )
Prototyped in: nut/include/sys/socket.h
Called by: 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

Global Function NutUdpReceiveFrom()

int NutUdpReceiveFrom ( UDPSOCKET* sock, u_long* addr, u_short* port, void* data, u_short size, u_long timeout )
Prototyped in: nut/include/sys/socket.h
Calls: NutEventWait() nut/os/event.c
  NutNetBufFree() nut/dev/netbuf.c
  __byte_swap2(), memcpy()
Called by: DhcpRecvMessage() nut/pro/dhcpc.c
  DiscoveryResponder() nut/pro/discover.c
  NutDnsGetResource() nut/pro/resolv.c
  NutSNTPGetTime() nut/pro/sntp.c
  NutWinsNameQuery() nut/pro/wins.c

Global Function NutUdpSendTo()

int NutUdpSendTo ( UDPSOCKET* sock, u_long addr, u_short port, void* data, u_short 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()
Called by: DhcpSendMessage() nut/pro/dhcpc.c
  DiscoveryResponder() nut/pro/discover.c
  NutDnsGetResource() nut/pro/resolv.c
  NutSNTPGetTime() nut/pro/sntp.c
  NutWinsNameQuery() nut/pro/wins.c
  vsyslog() nut/pro/syslog.c
  vsyslog_P() nut/pro/syslog.c

Global Function NutUdpSetSockOpt()

int NutUdpSetSockOpt ( UDPSOCKET* sock, int optname, const void* optval, int optlen )
Prototyped in: nut/include/sys/socket.h
Called by: DiscoveryResponder() nut/pro/discover.c
  NutDhcpClient() nut/pro/dhcpc.c
  NutSNTPGetTime() nut/pro/sntp.c