Annotation of embedaddon/miniupnpd/minissdpd/openssdpsocket.h, revision 1.1

1.1     ! misho       1: /* $Id: openssdpsocket.h,v 1.7 2015/07/21 15:39:38 nanard 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>