Electroneum
openssdpsocket.h File Reference
#include "minissdpdtypes.h"
Include dependency graph for openssdpsocket.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)
 

Function Documentation

◆ 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
sthe socket
lan_addrthe LAN address or interface name
ipv6IPv6 or IPv4
drop0 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
ipv6open INET6 or INET socket
ttlmulticast TTL
Returns
socket