summaryrefslogtreecommitdiff
path: root/src/network/connection.cpp
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2017-08-16 22:11:45 +0200
committerGitHub <noreply@github.com>2017-08-16 22:11:45 +0200
commit85511a642f851100d0d856f4ecbe7fea7a7bb049 (patch)
treeb25e4196578cb4734008642a29101393c6d9c457 /src/network/connection.cpp
parent816bca32ac69f58b7de881d68689c6a1e3897a0e (diff)
downloadminetest-85511a642f851100d0d856f4ecbe7fea7a7bb049.tar.gz
minetest-85511a642f851100d0d856f4ecbe7fea7a7bb049.tar.bz2
minetest-85511a642f851100d0d856f4ecbe7fea7a7bb049.zip
Cleanup various headers to reduce compilation times (#6255)
* Cleanup various headers to reduce compilation times
Diffstat (limited to 'src/network/connection.cpp')
-rw-r--r--src/network/connection.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/network/connection.cpp b/src/network/connection.cpp
index d1ab948db..c93971cac 100644
--- a/src/network/connection.cpp
+++ b/src/network/connection.cpp
@@ -564,6 +564,20 @@ void IncomingSplitBuffer::removeUnreliableTimedOuts(float dtime, float timeout)
}
/*
+ ConnectionCommand
+ */
+
+void ConnectionCommand::send(u16 peer_id_, u8 channelnum_, NetworkPacket *pkt,
+ bool reliable_)
+{
+ type = CONNCMD_SEND;
+ peer_id = peer_id_;
+ channelnum = channelnum_;
+ data = pkt->oldForgePacket();
+ reliable = reliable_;
+}
+
+/*
Channel
*/