summaryrefslogtreecommitdiff
path: root/other/bootstrap_node_packets.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2016-01-04 22:43:36 -0500
committerirungentoo <irungentoo@gmail.com>2016-01-04 22:43:36 -0500
commitc6bed82d47aa39709bdd568fccc3847714ed1b74 (patch)
tree4e2dd8676a53e78a5b84e3abd68cdbe82a636737 /other/bootstrap_node_packets.h
parent760f20c9455c2ef33ec9d242f209a1543f6acaf4 (diff)
parent9d1efd594914629204d4cd1a84678daf67eb8068 (diff)
Merge branch 'tox-bootstrapd-docker-support' of https://github.com/nurupo/InsertProjectNameHere
Diffstat (limited to 'other/bootstrap_node_packets.h')
-rw-r--r--other/bootstrap_node_packets.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/other/bootstrap_node_packets.h b/other/bootstrap_node_packets.h
new file mode 100644
index 00000000..43356e7b
--- /dev/null
+++ b/other/bootstrap_node_packets.h
@@ -0,0 +1,35 @@
1/* bootstrap_node_packets.h
2 *
3 * Special bootstrap node only packets.
4 *
5 * Include it in your bootstrap node and use: bootstrap_set_callbacks() to enable.
6 *
7 * Copyright (C) 2015 Tox project All Rights Reserved.
8 *
9 * This file is part of Tox.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 *
24 */
25
26#ifndef BOOTSTRAP_NODE_PACKETS_H
27#define BOOTSTRAP_NODE_PACKETS_H
28
29#include "../toxcore/network.h"
30
31#define MAX_MOTD_LENGTH 256 /* I recommend you use a maximum of 96 bytes. The hard maximum is this though. */
32
33int bootstrap_set_callbacks(Networking_Core *net, uint32_t version, uint8_t *motd, uint16_t motd_length);
34
35#endif // BOOTSTRAP_NODE_PACKETS_H