File diff r25812:9da4dff79bfb → r25813:ea6d38b6c3a1
src/network/core/tcp.h
Show inline comments
 
@@ -103,9 +103,14 @@ private:
 
	void Connect(addrinfo *address);
 
	bool CheckActivity();
 

	
 
	/* We do not want any other derived classes from this class being able to
 
	 * access these private members, but it is okay for TCPServerConnecter. */
 
	friend class TCPServerConnecter;
 

	
 
	static void ResolveThunk(TCPConnecter *connecter);
 

	
 
public:
 
	TCPConnecter() {};
 
	TCPConnecter(const std::string &connection_string, uint16 default_port);
 
	virtual ~TCPConnecter();
 

	
 
@@ -124,4 +129,11 @@ public:
 
	static void KillAll();
 
};
 

	
 
class TCPServerConnecter : public TCPConnecter {
 
public:
 
	ServerAddress server_address; ///< Address we are connecting to.
 

	
 
	TCPServerConnecter(const std::string &connection_string, uint16 default_port);
 
};
 

	
 
#endif /* NETWORK_CORE_TCP_H */