Go to the source code of this file.
◆ AddDropMulticastMembership()
| 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
- Parameters
-
| 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 |
◆ OpenAndConfSSDPReceiveSocket()
| int OpenAndConfSSDPReceiveSocket |
( |
int |
ipv6, |
|
|
unsigned char |
ttl |
|
) |
| |
Open a socket and configure it for receiving SSDP packets
- Parameters
-
| ipv6 | open INET6 or INET socket |
| ttl | multicast TTL |
- Returns
- socket