add cancellation support while connecting, to speed up WebSocket::stop
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "IXSocket.h"
|
||||
#include "IXSocketConnect.h"
|
||||
|
||||
#include <openssl/bio.h>
|
||||
#include <openssl/hmac.h>
|
||||
@@ -26,7 +27,8 @@ namespace ix
|
||||
|
||||
virtual bool connect(const std::string& host,
|
||||
int port,
|
||||
std::string& errMsg) final;
|
||||
std::string& errMsg,
|
||||
CancellationRequest isCancellationRequested) final;
|
||||
virtual void close() final;
|
||||
|
||||
virtual int send(char* buffer, size_t length) final;
|
||||
|
Reference in New Issue
Block a user