aboutsummaryrefslogtreecommitdiff
path: root/src/network/connection.h
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.h
parent816bca32ac69f58b7de881d68689c6a1e3897a0e (diff)
downloaddragonfireclient-85511a642f851100d0d856f4ecbe7fea7a7bb049.tar.xz
Cleanup various headers to reduce compilation times (#6255)
* Cleanup various headers to reduce compilation times
Diffstat (limited to 'src/network/connection.h')
-rw-r--r--src/network/connection.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/network/connection.h b/src/network/connection.h
index 289c79125..3dc87b489 100644
--- a/src/network/connection.h
+++ b/src/network/connection.h
@@ -24,7 +24,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "socket.h"
#include "exceptions.h"
#include "constants.h"
-#include "network/networkpacket.h"
#include "util/pointer.h"
#include "util/container.h"
#include "util/thread.h"
@@ -433,15 +432,8 @@ struct ConnectionCommand
type = CONNCMD_DISCONNECT_PEER;
peer_id = peer_id_;
}
- void send(u16 peer_id_, u8 channelnum_,
- NetworkPacket* pkt, bool reliable_)
- {
- type = CONNCMD_SEND;
- peer_id = peer_id_;
- channelnum = channelnum_;
- data = pkt->oldForgePacket();
- reliable = reliable_;
- }
+
+ void send(u16 peer_id_, u8 channelnum_, NetworkPacket* pkt, bool reliable_);
void ack(u16 peer_id_, u8 channelnum_, const SharedBuffer<u8> &data_)
{