Implementation of socket:peek

This commit is contained in:
Xertis 2026-09-03 19:32:49 +03:00
parent cbda27cd17
commit 9dacf7038f
6 changed files with 72 additions and 7 deletions

View file

@ -79,6 +79,7 @@ namespace network {
class ReadableConnection : public Connection {
public:
virtual int recv(char* buffer, size_t length) = 0;
virtual int peek(char* buffer, size_t length) = 0;
virtual int available() = 0;
};