IXWebSocket/ixwebsocket/IXSocketSChannel.h

33 lines
740 B
C
Raw Normal View History

2018-12-30 03:33:15 +01:00
/*
* IXSocketSChannel.h
* Author: Benjamin Sergeant
* Copyright (c) 2017-2018 Machine Zone, Inc. All rights reserved.
*/
#pragma once
#include "IXSocket.h"
namespace ix
2018-12-30 03:33:15 +01:00
{
2019-05-12 20:43:21 +02:00
class SocketSChannel final : public Socket
2018-12-30 03:33:15 +01:00
{
public:
SocketSChannel();
~SocketSChannel();
2019-05-30 17:46:50 +02:00
virtual bool connect(const std::string& host, int port, std::string& errMsg) final;
2018-12-30 03:33:15 +01:00
virtual void close() final;
// The important override
virtual void secureSocket() final;
virtual ssize_t send(char* buffer, size_t length) final;
virtual ssize_t send(const std::string& buffer) final;
virtual ssize_t recv(void* buffer, size_t length) final;
2018-12-30 03:33:15 +01:00
private:
};
2019-05-30 17:46:50 +02:00
} // namespace ix