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/
|
2014-04-20 16:05:22 +00:00
|
|
|
* (c) 2006-2014 Thomas Bernard
|
2011-09-28 19:13:20 +00:00
|
|
|
* 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);
|
|
|
|
|
2014-04-20 16:05:22 +00:00
|
|
|
#ifdef ENABLE_HTTPS
|
2011-09-28 19:13:20 +00:00
|
|
|
void
|
|
|
|
SendSSDPNotifies2(int * sockets,
|
2014-04-20 16:05:22 +00:00
|
|
|
unsigned short http_port,
|
2014-04-09 13:35:06 +00:00
|
|
|
unsigned short https_port,
|
2011-09-28 19:13:20 +00:00
|
|
|
unsigned int lifetime);
|
2014-04-20 16:05:22 +00:00
|
|
|
#else
|
|
|
|
void
|
|
|
|
SendSSDPNotifies2(int * sockets,
|
|
|
|
unsigned short http_port,
|
|
|
|
unsigned int lifetime);
|
|
|
|
#endif
|
2011-09-28 19:13:20 +00:00
|
|
|
|
|
|
|
void
|
2014-04-09 13:35:06 +00:00
|
|
|
#ifdef ENABLE_HTTPS
|
2014-04-20 16:05:22 +00:00
|
|
|
ProcessSSDPRequest(int s,
|
|
|
|
unsigned short http_port, unsigned short https_port);
|
2014-04-09 13:35:06 +00:00
|
|
|
#else
|
2014-04-20 16:05:22 +00:00
|
|
|
ProcessSSDPRequest(int s, unsigned short http_port);
|
2014-04-09 13:35:06 +00:00
|
|
|
#endif
|
2011-09-28 19:13:20 +00:00
|
|
|
|
2014-04-20 16:05:22 +00:00
|
|
|
#ifdef ENABLE_HTTPS
|
2011-09-28 19:13:20 +00:00
|
|
|
void
|
|
|
|
ProcessSSDPData(int s, const char *bufr, int n,
|
2014-04-09 13:35:06 +00:00
|
|
|
const struct sockaddr * sendername,
|
2014-04-20 16:05:22 +00:00
|
|
|
unsigned short http_port, unsigned short https_port);
|
2014-04-09 13:35:06 +00:00
|
|
|
#else
|
2014-04-20 16:05:22 +00:00
|
|
|
void
|
|
|
|
ProcessSSDPData(int s, const char *bufr, int n,
|
|
|
|
const struct sockaddr * sendername,
|
|
|
|
unsigned short http_port);
|
2014-04-09 13:35:06 +00:00
|
|
|
#endif
|
2011-09-28 19:13:20 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
SendSSDPGoodbye(int * sockets, int n);
|
|
|
|
|
|
|
|
int
|
|
|
|
SubmitServicesToMiniSSDPD(const char * host, unsigned short port);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|