X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnet%2Fcommunicator.h;h=822b16ef998dbd706d1ea1617950175d488496ca;hb=3ab65d35cfd696002e09768a38f98e6a2e1ade81;hp=575ec84e6c3a0f2be7ea77039041a52b919c069d;hpb=5afa6e0e07b20ef58d262d69d96971df9a4be71f;p=libs%2Fnet.git diff --git a/source/net/communicator.h b/source/net/communicator.h index 575ec84..822b16e 100644 --- a/source/net/communicator.h +++ b/source/net/communicator.h @@ -33,13 +33,13 @@ private: StreamSocket &socket; const Protocol &protocol; ReceiverBase &receiver; - int handshake_status; - std::size_t buf_size; - char *in_buf; - char *in_begin; - char *in_end; - char *out_buf; - bool good; + int handshake_status = 0; + std::size_t buf_size = 65536; + char *in_buf = nullptr; + char *in_begin = nullptr; + char *in_end = nullptr; + char *out_buf = nullptr; + bool good = true; public: Communicator(StreamSocket &, const Protocol &, ReceiverBase &);