Rearrange stuff
This commit is contained in:
parent
0e2f09c629
commit
b795877967
23 changed files with 478 additions and 139 deletions
16
include/SocketInterface.h
Normal file
16
include/SocketInterface.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// SocketInterface.h
|
||||
#pragma once
|
||||
#include <string>
|
||||
|
||||
class SocketInterface {
|
||||
public:
|
||||
virtual ~SocketInterface() = default;
|
||||
virtual void connect(const std::string& host, unsigned short port) = 0;
|
||||
virtual void writeLine(const std::string& data) = 0;
|
||||
virtual std::string readLine() = 0;
|
||||
virtual bool canRead(double timeout) = 0;
|
||||
virtual bool isClosed() = 0;
|
||||
virtual void close() = 0;
|
||||
virtual void prepareSSL(bool incoming) = 0;
|
||||
virtual void startSSL(bool incoming) = 0;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue