Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Net.h « src - github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/Net.h
blob: 8fea5a9bda451908a6a42f9ea182ae6406d80b06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright 2005-2017 The Mumble Developers. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file at the root of the
// Mumble source tree or at <https://www.mumble.info/LICENSE>.

#ifndef MUMBLE_NET_H_
#define MUMBLE_NET_H_

#include <QtCore/QDateTime>
#include <QtCore/QString>
#include <QtNetwork/Q_IPV6ADDR>

#include "HostAddress.h"

#ifndef DEFAULT_MUMBLE_PORT
#define DEFAULT_MUMBLE_PORT 64738
#endif

struct Ban {
	HostAddress haAddress;
	int iMask;
	QString qsUsername;
	QString qsHash;
	QString qsReason;
	QDateTime qdtStart;
	unsigned int iDuration;
	bool isExpired() const;
	bool isValid() const;
	bool operator < (const Ban &) const;
	bool operator == (const Ban &) const;
	QString toString() const;
};

quint32 qHash(const Ban &);

#endif