2014-04-09 13:35:06 +00:00
|
|
|
/* $Id: minissdp.h,v 1.12 2014/04/09 07:20:59 nanard Exp $ */
|
2011-09-28 19:13:20 +00:00
|
|
|
/* MiniUPnP project
|
|
|
|
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
|
|
|
|
* (c) 2006-2007 Thomas Bernard
|
|
|
|
* This software is subject to the conditions detailed
|
|
|
|
* in the LICENCE file provided within the distribution */
|
2012-09-20 20:52:51 +00:00
|
|
|
#ifndef MINISSDP_H_INCLUDED
|
|
|
|
#define MINISSDP_H_INCLUDED
|
2011-09-28 19:13:20 +00:00
|
|
|
|
|
|
|
#include "miniupnpdtypes.h"
|
|
|
|
|
|
|
|
int
|
|
|
|
OpenAndConfSSDPReceiveSocket(int ipv6);
|
|
|
|
|
|
|
|
int
|
|
|
|
OpenAndConfSSDPNotifySockets(int * sockets);
|
|
|
|
/*OpenAndConfSSDPNotifySockets(int * sockets,
|
|
|
|
struct lan_addr_s * lan_addr, int n_lan_addr);*/
|
|
|
|
|
|
|
|
/*void
|
|
|
|
SendSSDPNotifies(int s, const char * host, unsigned short port,
|
|
|
|
unsigned int lifetime);*/
|
|
|
|
void
|
|
|
|
SendSSDPNotifies2(int * sockets,
|
|
|
|
unsigned short port,
|
2014-04-09 13:35:06 +00:00
|
|
|
#ifdef ENABLE_HTTPS
|
|
|
|
unsigned short https_port,
|
|
|
|
#endif
|
2011-09-28 19:13:20 +00:00
|
|
|
unsigned int lifetime);
|
|
|
|
/*SendSSDPNotifies2(int * sockets, struct lan_addr_s * lan_addr, int n_lan_addr,
|
|
|
|
unsigned short port,
|
|
|
|
unsigned int lifetime);*/
|
|
|
|
|
|
|
|
void
|
2014-04-09 13:35:06 +00:00
|
|
|
#ifdef ENABLE_HTTPS
|
|
|
|
ProcessSSDPRequest(int s, unsigned short port, unsigned short https_port);
|
|
|
|
#else
|
2011-09-28 19:13:20 +00:00
|
|
|
ProcessSSDPRequest(int s, unsigned short port);
|
2014-04-09 13:35:06 +00:00
|
|
|
#endif
|
2011-09-28 19:13:20 +00:00
|
|
|
/*ProcessSSDPRequest(int s, struct lan_addr_s * lan_addr, int n_lan_addr,
|
|
|
|
unsigned short port);*/
|
|
|
|
|
|
|
|
void
|
|
|
|
ProcessSSDPData(int s, const char *bufr, int n,
|
2014-04-09 13:35:06 +00:00
|
|
|
const struct sockaddr * sendername,
|
|
|
|
#ifdef ENABLE_HTTPS
|
|
|
|
unsigned short port, unsigned short https_port);
|
|
|
|
#else
|
|
|
|
unsigned short port);
|
|
|
|
#endif
|
2011-09-28 19:13:20 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
SendSSDPGoodbye(int * sockets, int n);
|
|
|
|
|
|
|
|
int
|
|
|
|
SubmitServicesToMiniSSDPD(const char * host, unsigned short port);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|