miniupnp/miniupnpd/minissdp.h

59 lines
1.5 KiB
C
Raw Normal View History

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-2017 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 */
#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);
#ifdef ENABLE_HTTPS
2011-09-28 19:13:20 +00:00
void
SendSSDPNotifies2(int * sockets,
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);
#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
ProcessSSDPRequest(int s,
unsigned short http_port, unsigned short https_port);
2014-04-09 13:35:06 +00:00
#else
ProcessSSDPRequest(int s, unsigned short http_port);
2014-04-09 13:35:06 +00:00
#endif
2011-09-28 19:13:20 +00:00
#ifdef ENABLE_HTTPS
2011-09-28 19:13:20 +00:00
void
ProcessSSDPData(int s, const char *bufr, int n,
const struct sockaddr * sendername, int source_if,
unsigned short http_port, unsigned short https_port);
2014-04-09 13:35:06 +00:00
#else
void
ProcessSSDPData(int s, const char *bufr, int n,
const struct sockaddr * sendername, int source_if,
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