File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / miniupnpd / minissdpd / openssdpsocket.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Sep 27 11:25:11 2023 UTC (14 months, 4 weeks ago) by misho
Branches: miniupnpd, MAIN
CVS tags: v2_3_3p0, HEAD
Version 2.3.3p0

    1: /* $Id: openssdpsocket.h,v 1.1.1.1 2023/09/27 11:25:11 misho Exp $ */
    2: /* MiniUPnP project
    3:  * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
    4:  * (c) 2006-2015 Thomas Bernard
    5:  * This software is subject to the conditions detailed
    6:  * in the LICENCE file provided within the distribution */
    7: #ifndef OPENSSDPSOCKET_H_INCLUDED
    8: #define OPENSSDPSOCKET_H_INCLUDED
    9: 
   10: #include "minissdpdtypes.h"
   11: 
   12: /**
   13:  * Open a socket and configure it for receiving SSDP packets
   14:  *
   15:  * @param ipv6	open INET6 or INET socket
   16:  * @param ttl	multicast TTL
   17:  * @return socket
   18:  */
   19: int
   20: OpenAndConfSSDPReceiveSocket(int ipv6, unsigned char ttl);
   21: 
   22: /**
   23:  * Add or Drop the multicast membership for SSDP on the interface
   24:  * @param s	the socket
   25:  * @param lan_addr	the LAN address or interface name
   26:  * @param ipv6	IPv6 or IPv4
   27:  * @param drop	0 to add, 1 to drop
   28:  * return -1 on error, 0 on success */
   29: int
   30: AddDropMulticastMembership(int s, struct lan_addr_s * lan_addr, int ipv6, int drop);
   31: 
   32: #endif
   33: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>