MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / init

Method init

plugins/dm.gameconnection/MessageTcp.cpp:12–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10MessageTcp::MessageTcp() {}
11
12void MessageTcp::init(std::unique_ptr<CActiveSocket> &&connection) {
13 tcp = std::move(connection);
14
15 inputBuffer.clear();
16 outputBuffer.clear();
17 inputPos = 0;
18 outputPos = 0;
19}
20
21bool MessageTcp::isAlive() const {
22 return tcp.get() && tcp->IsSocketValid(); //TODO: IsAlive?

Callers 1

connectMethod · 0.45

Calls 2

moveFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected