]> git.localhorst.tv Git - blank.git/blobdiff - src/client/net.cpp
split input handling
[blank.git] / src / client / net.cpp
index ed2dd20d3e332b13c1905da3d6d4e8ee3245734d..a5feaf5f7cddd4ac4038d2f5886432fa9d49686c 100644 (file)
@@ -123,6 +123,7 @@ void ChunkReceiver::Commit(ChunkTransmission &trans) {
        } else {
                memcpy(dst, src, min(src_len, dst_len));
        }
+       chunk->Invalidate();
        trans.Clear();
 }
 
@@ -176,7 +177,7 @@ IPaddress client_resolve(const char *host, Uint16 port) {
 
 }
 
-Client::Client(const Config &conf)
+Client::Client(const Config::Network &conf)
 : conn(client_resolve(conf.host.c_str(), conf.port))
 , client_sock(client_bind(0))
 , client_pack{ -1, nullptr, 0 } {