add cancellation support while connecting, to speed up WebSocket::stop
This commit is contained in:
1 parent
62528e6a0b
commit
8c079787f0
13 files changed
+69
-25
No files matched your search
@@ -12,6 +12,7 @@
|
||||
#include <atomic>
|
||||
|
||||
#include "IXEventFd.h"
|
||||
#include "IXSocketConnect.h"
|
||||
|
||||
struct addrinfo;
|
||||
|
||||
@@ -32,7 +33,8 @@ namespace ix
|
||||
// Virtual methods
|
||||
virtual bool connect(const std::string& url,
|
||||
int port,
|
||||
std::string& errMsg);
|
||||
std::string& errMsg,
|
||||
CancellationRequest isCancellationRequested);
|
||||
virtual void close();
|
||||
|
||||
virtual int send(char* buffer, size_t length);
|
||||
|
||||
Reference in new issue
Block a user