Init some members of TcpClientSocketHandler
This commit is contained in:
@@ -62,9 +62,9 @@ class TCPClientSocketHandler: public TCPSocketHandler
|
|||||||
* triggered a EINPROGRESS error when connect()ing to it, to reuse it
|
* triggered a EINPROGRESS error when connect()ing to it, to reuse it
|
||||||
* directly when connect() is called again.
|
* directly when connect() is called again.
|
||||||
*/
|
*/
|
||||||
struct addrinfo addrinfo;
|
struct addrinfo addrinfo{};
|
||||||
struct sockaddr_in6 ai_addr;
|
struct sockaddr_in6 ai_addr{};
|
||||||
socklen_t ai_addrlen;
|
socklen_t ai_addrlen{};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hostname we are connected/connecting to
|
* Hostname we are connected/connecting to
|
||||||
@@ -75,7 +75,7 @@ class TCPClientSocketHandler: public TCPSocketHandler
|
|||||||
*/
|
*/
|
||||||
std::string port;
|
std::string port;
|
||||||
|
|
||||||
uint16_t local_port;
|
uint16_t local_port{};
|
||||||
|
|
||||||
bool connected;
|
bool connected;
|
||||||
bool connecting;
|
bool connecting;
|
||||||
|
|||||||
Reference in New Issue
Block a user