|
Monero
|
#include "config.h"#include <string.h>#include <unistd.h>#include <sys/ioctl.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#include <net/if.h>#include <syslog.h>#include "openssdpsocket.h"#include "upnputils.h"#include "minissdpdtypes.h"
Macros | |
| #define | SSDP_PORT (1900) |
| #define | SSDP_MCAST_ADDR ("239.255.255.250") |
| #define | LL_SSDP_MCAST_ADDR ("FF02::C") |
| #define | SL_SSDP_MCAST_ADDR ("FF05::C") |
Functions | |
| int | AddDropMulticastMembership (int s, struct lan_addr_s *lan_addr, int ipv6, int drop) |
| int | OpenAndConfSSDPReceiveSocket (int ipv6, unsigned char ttl) |
Variables | |
| struct lan_addr_list | lan_addrs |
| #define LL_SSDP_MCAST_ADDR ("FF02::C") |
| #define SL_SSDP_MCAST_ADDR ("FF05::C") |
| #define SSDP_MCAST_ADDR ("239.255.255.250") |
| #define SSDP_PORT (1900) |
| int AddDropMulticastMembership | ( | int | s, |
| struct lan_addr_s * | lan_addr, | ||
| int | ipv6, | ||
| int | drop ) |
Add the multicast membership for SSDP on the interface
| s | the socket |
| ifaddr | the IPv4 address or interface name |
| ipv6 | IPv6 or IPv4 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 |
|
extern |