miniupnpd 1.9 (20160113)
[tomato.git] / release / src / router / miniupnpd / minissdp.h
blobbc350af54adc032c602cbf6cc66e150b58e10186
1 /* $Id: minissdp.h,v 1.13 2014/04/20 16:34:27 nanard Exp $ */
2 /* MiniUPnP project
3 * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
4 * (c) 2006-2014 Thomas Bernard
5 * This software is subject to the conditions detailed
6 * in the LICENCE file provided within the distribution */
7 #ifndef MINISSDP_H_INCLUDED
8 #define MINISSDP_H_INCLUDED
10 #include "miniupnpdtypes.h"
12 int
13 OpenAndConfSSDPReceiveSocket(int ipv6);
15 int
16 OpenAndConfSSDPNotifySockets(int * sockets);
18 #ifdef ENABLE_HTTPS
19 void
20 SendSSDPNotifies2(int * sockets,
21 unsigned short http_port,
22 unsigned short https_port,
23 unsigned int lifetime);
24 #else
25 void
26 SendSSDPNotifies2(int * sockets,
27 unsigned short http_port,
28 unsigned int lifetime);
29 #endif
31 void
32 #ifdef ENABLE_HTTPS
33 ProcessSSDPRequest(int s,
34 unsigned short http_port, unsigned short https_port);
35 #else
36 ProcessSSDPRequest(int s, unsigned short http_port);
37 #endif
39 #ifdef ENABLE_HTTPS
40 void
41 ProcessSSDPData(int s, const char *bufr, int n,
42 const struct sockaddr * sendername,
43 unsigned short http_port, unsigned short https_port);
44 #else
45 void
46 ProcessSSDPData(int s, const char *bufr, int n,
47 const struct sockaddr * sendername,
48 unsigned short http_port);
49 #endif
51 int
52 SendSSDPGoodbye(int * sockets, int n);
54 int
55 SubmitServicesToMiniSSDPD(const char * host, unsigned short port);
57 #endif