Browse Source

Cosmetic fixes

Paul-Louis Ageneau 3 years ago
parent
commit
74b713219e
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/impl/tcptransport.cpp
  2. 1 1
      src/impl/tcptransport.hpp

+ 2 - 2
src/impl/tcptransport.cpp

@@ -37,7 +37,7 @@ using std::chrono::milliseconds;
 
 
 TcpTransport::TcpTransport(string hostname, string service, state_callback callback)
 TcpTransport::TcpTransport(string hostname, string service, state_callback callback)
     : Transport(nullptr, std::move(callback)), mIsActive(true), mHostname(std::move(hostname)),
     : Transport(nullptr, std::move(callback)), mIsActive(true), mHostname(std::move(hostname)),
-      mService(std::move(service)) {
+      mService(std::move(service)), mSock(INVALID_SOCKET) {
 
 
 	PLOG_DEBUG << "Initializing TCP transport";
 	PLOG_DEBUG << "Initializing TCP transport";
 }
 }
@@ -174,7 +174,7 @@ void TcpTransport::connect() {
 						throw std::runtime_error(msg.str());
 						throw std::runtime_error(msg.str());
 					}
 					}
 
 
-					PLOG_DEBUG << "TCP connection succeeded";
+					PLOG_INFO << "TCP connected";
 					freeaddrinfo(result);
 					freeaddrinfo(result);
 					changeState(State::Connected);
 					changeState(State::Connected);
 
 

+ 1 - 1
src/impl/tcptransport.hpp

@@ -63,7 +63,7 @@ private:
 	const bool mIsActive;
 	const bool mIsActive;
 	string mHostname, mService;
 	string mHostname, mService;
 
 
-	socket_t mSock = INVALID_SOCKET;
+	socket_t mSock;
 	Queue<message_ptr> mSendQueue;
 	Queue<message_ptr> mSendQueue;
 	std::mutex mSendMutex;
 	std::mutex mSendMutex;
 };
 };