|
Electroneum
|
#include "minissdpdtypes.h"
Go to the source code of this file.
Functions | |
| int | OpenAndConfSSDPReceiveSocket (int ipv6, unsigned char ttl) |
| int | AddDropMulticastMembership (int s, struct lan_addr_s *lan_addr, int ipv6, int drop) |
| int AddDropMulticastMembership | ( | int | s, |
| struct lan_addr_s * | lan_addr, | ||
| int | ipv6, | ||
| int | drop ) |
Add or Drop the multicast membership for SSDP on the interface
| s | the socket |
| lan_addr | the LAN address or interface name |
| ipv6 | IPv6 or IPv4 |
| drop | 0 to add, 1 to drop return -1 on error, 0 on success |
| int OpenAndConfSSDPReceiveSocket | ( | int | ipv6, |
| unsigned char | ttl ) |
Open a socket and configure it for receiving SSDP packets
| ipv6 | open INET6 or INET socket |
| ttl | multicast TTL |