]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/communicator.h
Use default member initializers where possible
[libs/net.git] / source / net / communicator.h
index 575ec84e6c3a0f2be7ea77039041a52b919c069d..322d095a8ec3d1c1df5b258c25f65b3c88a713fa 100644 (file)
@@ -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 = 0;
+       char *in_begin = 0;
+       char *in_end = 0;
+       char *out_buf = 0;
+       bool good = true;
 
 public:
        Communicator(StreamSocket &, const Protocol &, ReceiverBase &);