mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
add ReadableConnection interface
This commit is contained in:
parent
80cd187c6f
commit
44bf4a2f9e
3 changed files with 9 additions and 4 deletions
|
|
@ -75,6 +75,12 @@ namespace network {
|
|||
bool isprivate = false;
|
||||
};
|
||||
|
||||
class ReadableConnection : public Connection {
|
||||
public:
|
||||
virtual int recv(char* buffer, size_t length) = 0;
|
||||
virtual int available() = 0;
|
||||
};
|
||||
|
||||
class Server {
|
||||
public:
|
||||
virtual ~Server() = default;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue