UPnPsdk 0.1
Universal Plug and Play +, Software Development Kit
 
Loading...
Searching...
No Matches
ssdp_ctrlpt.hpp
Go to the documentation of this file.
1#ifdef COMPA_HAVE_CTRLPT_SSDP
2
3#ifndef COMPA_SSDP_CTRLPT_HPP
4#define COMPA_SSDP_CTRLPT_HPP
5/**************************************************************************
6 *
7 * Copyright (c) 2000-2003 Intel Corporation
8 * All rights reserved.
9 * Copyright (C) 2011-2012 France Telecom All rights reserved.
10 * Copyright (C) 2024+ GPL 3 and higher by Ingo Höft, <Ingo@Hoeft-online.de>
11 * Redistribution only with this Copyright remark. Last modified: 2025-06-12
12 *
13 * Redistribution and use in source and binary forms, with or without
14 * modification, are permitted provided that the following conditions are met:
15 *
16 * - Redistributions of source code must retain the above copyright notice,
17 * this list of conditions and the following disclaimer.
18 * - Redistributions in binary form must reproduce the above copyright notice,
19 * this list of conditions and the following disclaimer in the documentation
20 * and/or other materials provided with the distribution.
21 * - Neither name of Intel Corporation nor the names of its contributors
22 * may be used to endorse or promote products derived from this software
23 * without specific prior written permission.
24 *
25 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR
29 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
31 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
32 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
33 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
34 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
35 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 *
37 **************************************************************************/
38// Last compare with ./pupnp source file on 2023-08-30, ver 1.14.18
47#include <ssdp_common.hpp>
48
49
60
72 http_message_t* hmsg,
74 sockaddr_storage* dest_addr,
77 int timeout);
78
104 int Hnd,
106 int Mx,
108 char* St,
111 void* Cookie);
112
123 SOCKET* ssdpReqSock);
124
135 SOCKET* ssdpReqSock);
136
138
139#endif // COMPA_SSDP_CTRLPT_HPP
140#endif // COMPA_HAVE_CTRLPT_SSDP
Structure of an HTTP message.
int SearchByTarget(int Hnd, int Mx, char *St, void *Cookie)
Creates and send the search request for a specific URL.
void ssdp_handle_ctrlpt_msg(http_message_t *hmsg, sockaddr_storage *dest_addr, int timeout)
This function handles the ssdp messages from the devices.
int create_ssdp_sock_reqv6(SOCKET *ssdpReqSock)
Creates the SSDP IPv6 socket to be used by the control point.
int create_ssdp_sock_reqv4(SOCKET *ssdpReqSock)
Creates the SSDP IPv4 socket to be used by the control point.
Manage "Step 1: Discovery" of the UPnP+™ specification with SSDP.
SsdpSearchType
Enumeration to define all different types of ssdp searches.
int timeoutEventId
part of search argument
enum SsdpSearchType requestType
part of search argument
void * cookie
part of search argument
char * searchTarget
part of search argument
SSDP search argument.