diff options
author | louiz’ <louiz@louiz.org> | 2016-12-08 18:41:12 +0100 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-12-08 18:41:12 +0100 |
commit | 7f2eb6073761ebddc37d7872e44d621d719d6828 (patch) | |
tree | f5feeb83da2be2a9230567a60532fd937efd74c7 /louloulibs | |
parent | 6fee8394f021fe5aee459ecbf678cd3a0a42ea32 (diff) | |
download | biboumi-7f2eb6073761ebddc37d7872e44d621d719d6828.tar.gz biboumi-7f2eb6073761ebddc37d7872e44d621d719d6828.tar.bz2 biboumi-7f2eb6073761ebddc37d7872e44d621d719d6828.tar.xz biboumi-7f2eb6073761ebddc37d7872e44d621d719d6828.zip |
Init some members of TcpClientSocketHandler
Diffstat (limited to 'louloulibs')
-rw-r--r-- | louloulibs/network/tcp_client_socket_handler.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/louloulibs/network/tcp_client_socket_handler.hpp b/louloulibs/network/tcp_client_socket_handler.hpp index 72f68d0..75e1364 100644 --- a/louloulibs/network/tcp_client_socket_handler.hpp +++ b/louloulibs/network/tcp_client_socket_handler.hpp @@ -62,9 +62,9 @@ class TCPClientSocketHandler: public TCPSocketHandler * triggered a EINPROGRESS error when connect()ing to it, to reuse it * directly when connect() is called again. */ - struct addrinfo addrinfo; - struct sockaddr_in6 ai_addr; - socklen_t ai_addrlen; + struct addrinfo addrinfo{}; + struct sockaddr_in6 ai_addr{}; + socklen_t ai_addrlen{}; /** * Hostname we are connected/connecting to @@ -75,7 +75,7 @@ class TCPClientSocketHandler: public TCPSocketHandler */ std::string port; - uint16_t local_port; + uint16_t local_port{}; bool connected; bool connecting; |