Electroneum
minissdp.h
Go to the documentation of this file.
1 /* $Id: minissdp.h,v 1.12 2014/04/09 07:20:59 nanard Exp $ */
2 /* MiniUPnP project
3  * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
4  * (c) 2006-2017 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
9 
10 #include "miniupnpdtypes.h"
11 
12 int
14 
15 int
16 OpenAndConfSSDPNotifySockets(int * sockets);
17 
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
30 
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
38 
39 #ifdef ENABLE_HTTPS
40 void
41 ProcessSSDPData(int s, const char *bufr, int n,
42  const struct sockaddr * sendername, int source_if,
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, int source_if,
48  unsigned short http_port);
49 #endif
50 
51 int
52 SendSSDPGoodbye(int * sockets, int n);
53 
54 int
55 SubmitServicesToMiniSSDPD(const char * host, unsigned short port);
56 
57 #endif
58 
int SendSSDPGoodbye(int *sockets, int n)
int OpenAndConfSSDPNotifySockets(int *sockets)
void ProcessSSDPData(int s, const char *bufr, int n, const struct sockaddr *sendername, int source_if, unsigned short http_port)
int SubmitServicesToMiniSSDPD(const char *host, unsigned short port)
void ProcessSSDPRequest(int s, unsigned short http_port)
boost::endian::big_uint16_t port
Definition: socks.cpp:60
void SendSSDPNotifies2(int *sockets, unsigned short http_port, unsigned int lifetime)
int OpenAndConfSSDPReceiveSocket(int ipv6)