File nut/pro/ssdpd.c


Included Files


Local Variables

regdev_root
static SSDP_DEVICE* regdev_root
Used in: SendSearchResponse()  
  SsdpRegisterDeviceTree()  
  SsdpSendNotifications()  

Global Function SsdpRegisterDeviceTree()

int SsdpRegisterDeviceTree ( SSDP_DEVICE* tree )
Prototyped in: nut/include/pro/ssdp.h
Calls: SsdpRegisterResponder() nut/pro/ssdp.c
References Functions: SendSearchResponse() nut/pro/ssdpd.c
References Variables: regdev_root nut/pro/ssdpd.c

Global Function SsdpSendNotifications()

int SsdpSendNotifications ( HTTPU_SESSION* s, char* note )
Prototyped in: nut/include/pro/ssdp.h
Calls: SendDeviceNotify() nut/pro/ssdpd.c
  SendServiceNotify() nut/pro/ssdpd.c
Called by: SsdpReceiver() nut/pro/ssdp.c
References Variables: regdev_root nut/pro/ssdpd.c

Local Function AddNotifyHeaders()

static void AddNotifyHeaders ( HTTPU_SESSION* s, const char* location, const char* type )
Calls: HttpuAddHeader() nut/pro/httpu.c
  inet_ntoa() nut/net/inet.c
Called by: SendDeviceNotify() nut/pro/ssdpd.c
  SendServiceNotify() nut/pro/ssdpd.c

Local Function AddResponseHeaders()

static void AddResponseHeaders ( HTTPU_SESSION* s, const char* location, const char* type )
Calls: HttpuAddHeader() nut/pro/httpu.c
  inet_ntoa() nut/net/inet.c
Called by: SendDeviceResponse() nut/pro/ssdpd.c
  SendServiceResponse() nut/pro/ssdpd.c

Local Function SendAllResponse()

static void SendAllResponse ( HTTPU_SESSION* s, SSDP_DEVICE* tree )
Calls: SendAllResponse() nut/pro/ssdpd.c
  SendDeviceResponse() nut/pro/ssdpd.c
  SendServiceResponse() nut/pro/ssdpd.c
Called by: SendAllResponse() nut/pro/ssdpd.c
  SendSearchResponse() nut/pro/ssdpd.c

Local Function SendDeviceNotify()

static void SendDeviceNotify ( HTTPU_SESSION* s, SSDP_DEVICE* sdev, int mode )
Calls: AddNotifyHeaders() nut/pro/ssdpd.c
  HttpuAddHeader() nut/pro/httpu.c
  HttpuSend() nut/pro/httpu.c
  NutSleep() nut/os/timer.c
  inet_addr() nut/net/inet.c
Called by: SsdpSendNotifications() nut/pro/ssdpd.c

Local Function SendDeviceResponse()

static void SendDeviceResponse ( HTTPU_SESSION* s, SSDP_DEVICE* sdev, int mode )
Calls: AddResponseHeaders() nut/pro/ssdpd.c
  HttpuAddHeader() nut/pro/httpu.c
  HttpuRespond() nut/pro/httpu.c
  NutSleep() nut/os/timer.c
Called by: SendAllResponse() nut/pro/ssdpd.c
  SendDeviceTypeResponse() nut/pro/ssdpd.c
  SendRootResponse() nut/pro/ssdpd.c
  SendUuidResponse() nut/pro/ssdpd.c

Local Function SendDeviceTypeResponse()

static void SendDeviceTypeResponse ( HTTPU_SESSION* s, SSDP_DEVICE* tree, const char* domain, const char* type )
Calls: SendDeviceResponse() nut/pro/ssdpd.c
  SendDeviceTypeResponse() nut/pro/ssdpd.c
  strcmp() nut/c/string/strcmp.c
Called by: SendDeviceTypeResponse() nut/pro/ssdpd.c
  SendSearchResponse() nut/pro/ssdpd.c

Local Function SendRootResponse()

static void SendRootResponse ( HTTPU_SESSION* s, SSDP_DEVICE* tree )
Calls: SendDeviceResponse() nut/pro/ssdpd.c
Called by: SendSearchResponse() nut/pro/ssdpd.c

Local Function SendSearchResponse()

static void SendSearchResponse ( HTTPU_SESSION* s )
Calls: HttpuGetHeader() nut/pro/httpu.c
  SendAllResponse() nut/pro/ssdpd.c
  SendDeviceTypeResponse() nut/pro/ssdpd.c
  SendRootResponse() nut/pro/ssdpd.c
  SendServiceTypeResponse() nut/pro/ssdpd.c
  SendUuidResponse() nut/pro/ssdpd.c
  SsdpSplitWords() nut/pro/ssdp.c
  free() nut/crt/malloc.c
  strcmp() nut/c/string/strcmp.c
  strdup() nut/crt/strdup.c
Used in: SsdpRegisterDeviceTree() nut/pro/ssdpd.c
References Variables: regdev_root nut/pro/ssdpd.c

Local Function SendServiceNotify()

static void SendServiceNotify ( HTTPU_SESSION* s, SSDP_SERVICE* svc )
Calls: AddNotifyHeaders() nut/pro/ssdpd.c
  HttpuAddHeader() nut/pro/httpu.c
  HttpuSend() nut/pro/httpu.c
  inet_addr() nut/net/inet.c
Called by: SsdpSendNotifications() nut/pro/ssdpd.c

Local Function SendServiceResponse()

static void SendServiceResponse ( HTTPU_SESSION* s, SSDP_SERVICE* svc )
Calls: AddResponseHeaders() nut/pro/ssdpd.c
  HttpuAddHeader() nut/pro/httpu.c
  HttpuRespond() nut/pro/httpu.c
Called by: SendAllResponse() nut/pro/ssdpd.c
  SendServiceTypeResponse() nut/pro/ssdpd.c

Local Function SendServiceTypeResponse()

static void SendServiceTypeResponse ( HTTPU_SESSION* s, SSDP_DEVICE* tree, const char* domain, const char* st )
Calls: SendServiceResponse() nut/pro/ssdpd.c
  SendServiceTypeResponse() nut/pro/ssdpd.c
  strcmp() nut/c/string/strcmp.c
Called by: SendSearchResponse() nut/pro/ssdpd.c
  SendServiceTypeResponse() nut/pro/ssdpd.c

Local Function SendUuidResponse()

static void SendUuidResponse ( HTTPU_SESSION* s, SSDP_DEVICE* tree, const char* uuid )
Calls: SendDeviceResponse() nut/pro/ssdpd.c
  SendUuidResponse() nut/pro/ssdpd.c
  strcmp() nut/c/string/strcmp.c
Called by: SendSearchResponse() nut/pro/ssdpd.c
  SendUuidResponse() nut/pro/ssdpd.c