gloox
1.0.27
src
linklocal.h
1
/*
2
Copyright (c) 2012-2023 by Jakob Schröter <js@camaya.net>
3
This file is part of the gloox library. http://camaya.net/gloox
4
5
This software is distributed under a license. The full license
6
agreement can be found in the file LICENSE in this distribution.
7
This software may not be copied, modified, sold or distributed
8
other than expressed in the named license agreement.
9
10
This software is distributed without any warranty.
11
*/
12
13
#ifndef LINKLOCAL_H__
14
#define LINKLOCAL_H__
15
16
#include "config.h"
17
18
#ifdef HAVE_MDNS
19
20
#include <string>
21
#include <list>
22
23
namespace
gloox
24
{
25
32
namespace
LinkLocal
33
{
34
35
class
Client
;
36
40
enum
Flag
41
{
42
AddService
,
43
RemoveService
44
};
45
52
struct
Service
53
{
54
friend
class
Manager
;
55
56
private
:
57
Service
(
Flag
_flag,
const
std::string& _service,
const
std::string& _regtype,
const
std::string& _domain,
int
_interface )
58
: flag( _flag ), service( _service ), regtype( _regtype ), domain( _domain ), iface( _interface ) {}
59
60
public
:
61
Flag
flag;
62
std::string service;
63
std::string regtype;
64
std::string domain;
65
int
iface;
66
};
67
71
typedef
std::list<Service>
ServiceList
;
72
73
}
74
75
}
76
77
#endif
// HAVE_MDNS
78
79
#endif
// LINKLOCAL_H__
gloox::LinkLocal::Client
An implementation of a link-local client.
Definition:
linklocalclient.h:46
gloox::LinkLocal::Manager
This is a manager for server-less messaging (XEP-0174).
Definition:
linklocalmanager.h:168
gloox::LinkLocal::Flag
Flag
Definition:
linklocal.h:41
gloox::LinkLocal::AddService
@ AddService
Definition:
linklocal.h:42
gloox::LinkLocal::RemoveService
@ RemoveService
Definition:
linklocal.h:43
gloox::LinkLocal::ServiceList
std::list< Service > ServiceList
Definition:
linklocal.h:71
gloox
The namespace for the gloox library.
Definition:
adhoc.cpp:28
gloox::LinkLocal::Service
An abstraction of the parameters of a single link-local service.
Definition:
linklocal.h:53
Generated on Mon Apr 24 2023 11:23:44 for gloox by
1.9.1