Network/TcpClient: Replace Connect overload by WaitForConnected method
Former-commit-id: 11ff81ea975f79a51f6342a9a574a23d18c0180f
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user