

Go to the source code of this file.
Classes | |
| struct | ssdp_cache_struct |
Typedefs | |
| typedef struct ssdp_cache_struct | ssdp_cache_s |
Functions | |
| BOOL | add_ssdp_message_to_cache (ssdp_cache_s **ssdp_cache_pointer, ssdp_message_s **ssdp_message_pointer) |
| int | flush_ssdp_cache (configuration_s *conf, ssdp_cache_s **ssdp_cache_pointer, const char *url, struct sockaddr_storage *sockaddr_recipient, int port, int timeout) |
Header file for ssdp_cache.c.
Definition in file ssdp_cache.h.
| typedef struct ssdp_cache_struct ssdp_cache_s |
The ssdp_message_s cache that acts as a buffer for sending bulks of messages instead of spamming; *ssdp_message should always point to the last ssdp_message in the buffer.
| BOOL add_ssdp_message_to_cache | ( | ssdp_cache_s ** | ssdp_cache_pointer, |
| ssdp_message_s ** | ssdp_message_pointer | ||
| ) |
Adds a ssdp message to a ssdp messages list. If the list hasn't been initialized then it is initialized first.
| ssdp_cache_pointer | The address of a pointer to a ssdp cache list. |
| ssdp_message_pointer | The ssdp message to be appended to the cache list. |
Definition at line 290 of file ssdp_cache.c.
| int flush_ssdp_cache | ( | configuration_s * | conf, |
| ssdp_cache_s ** | ssdp_cache_pointer, | ||
| const char * | url, | ||
| struct sockaddr_storage * | sockaddr_recipient, | ||
| int | port, | ||
| int | timeout | ||
| ) |
Send and free the passed SSDP cache.
| conf | The configuration to use. |
| ssdp_cache_pointer | The SSDP cache to send and delete (flush). |
| url | The URL (without the protocol and IP) to send the data to. |
| sockaddr_recipient | The socket address to send to. |
| port | The port to send to. |
| timeout | The send-timeout to set. |
Definition at line 392 of file ssdp_cache.c.
1.8.8