1 /* $Id: minissdp.h,v 1.13 2014/04/20 16:34:27 nanard Exp $ */
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"
13 OpenAndConfSSDPReceiveSocket(int ipv6
);
16 OpenAndConfSSDPNotifySockets(int * sockets
);
20 SendSSDPNotifies2(int * sockets
,
21 unsigned short http_port
,
22 unsigned short https_port
,
23 unsigned int lifetime
);
26 SendSSDPNotifies2(int * sockets
,
27 unsigned short http_port
,
28 unsigned int lifetime
);
33 ProcessSSDPRequest(int s
,
34 unsigned short http_port
, unsigned short https_port
);
36 ProcessSSDPRequest(int s
, unsigned short http_port
);
41 ProcessSSDPData(int s
, const char *bufr
, int n
,
42 const struct sockaddr
* sendername
,
43 unsigned short http_port
, unsigned short https_port
);
46 ProcessSSDPData(int s
, const char *bufr
, int n
,
47 const struct sockaddr
* sendername
,
48 unsigned short http_port
);
52 SendSSDPGoodbye(int * sockets
, int n
);
55 SubmitServicesToMiniSSDPD(const char * host
, unsigned short port
);