PTLib
Version 2.14.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
ssdp.h
Go to the documentation of this file.
1
/*
2
* ssdp.h
3
*
4
* Simple Service Discovery Protocol classes.
5
*
6
* Portable Tools Library
7
*
8
* Copyright (c) 2011 Vox Lucida Pty. Ltd.
9
*
10
* The contents of this file are subject to the Mozilla Public License
11
* Version 1.0 (the "License"); you may not use this file except in
12
* compliance with the License. You may obtain a copy of the License at
13
* http://www.mozilla.org/MPL/
14
*
15
* Software distributed under the License is distributed on an "AS IS"
16
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
17
* the License for the specific language governing rights and limitations
18
* under the License.
19
*
20
* The Original Code is Portable Windows Library.
21
*
22
* The Initial Developer of the Original Code is Vox Lucida Pty. Ltd.
23
*
24
* Contributor(s): ______________________________________.
25
*
26
* $Revision: 26181 $
27
* $Author: rjongbloed $
28
* $Date: 2011-07-12 10:31:10 +1000 (Tue, 12 Jul 2011) $
29
*/
30
31
#ifndef PTLIB_SSDP_H
32
#define PTLIB_SSDP_H
33
34
#ifdef P_USE_PRAGMA
35
#pragma interface
36
#endif
37
38
#include <
ptclib/http.h
>
39
40
42
// PSSDP
43
46
class
PSSDP
:
public
PHTTP
47
{
48
PCLASSINFO
(
PSSDP
,
PHTTP
)
49
50
public
:
51
// New functions for class.
52
enum
Commands
{
53
M_SEARCH
=
PHTTP::NumCommands
,
54
NOTIFY
,
55
NumCommands
56
};
57
58
// Common MIME header tags
59
static
const
PCaselessString
&
MXTag
();
60
static
const
PCaselessString
&
STTag
();
61
static
const
PCaselessString
&
MANTag
();
62
static
const
PCaselessString
&
USNTag
();
63
static
const
PCaselessString
&
NickNameTag
();
64
67
PSSDP
();
68
71
bool
Listen
();
72
77
bool
Search
(
78
const
PString
& urn,
79
PMIMEInfo
& reply
80
);
81
84
bool
GetNotify
(
85
PMIMEInfo
& mime,
86
const
PString
& urnRegex =
".*"
87
);
88
89
protected
:
90
bool
Close
();
91
92
bool
m_listening
;
93
};
94
95
96
#endif // PTLIB_SSDP_H
97
98
99
// End Of File ///////////////////////////////////////////////////////////////
include
ptclib
ssdp.h
Generated on Fri Oct 10 2014 21:15:13 for PTLib by
1.8.3.1