Network/TcpClient: Replace Connect overload by WaitForConnected method

Former-commit-id: 11ff81ea975f79a51f6342a9a574a23d18c0180f
This commit is contained in:
Lynix
2015-11-10 13:55:42 +01:00
parent dd987e6b71
commit fd09cdbf1e
2 changed files with 52 additions and 9 deletions

View File

@@ -23,7 +23,7 @@ namespace Nz
inline TcpClient(TcpClient&& tcpClient);
~TcpClient() = default;
SocketState Connect(const IpAddress& remoteAddress, UInt64 msTimeout = 3000);
SocketState Connect(const IpAddress& remoteAddress);
inline void Disconnect();
void EnableLowDelay(bool lowDelay);
@@ -42,6 +42,8 @@ namespace Nz
bool Send(const void* buffer, std::size_t size, std::size_t* sent);
bool WaitForConnected(UInt64 msTimeout = 3000);
private:
void OnClose() override;
void OnOpened() override;