update Socket.send, recv

This commit is contained in:
MihailRis
2024-11-11 20:09:56 +03:00
parent dc84fe1f07
commit 40ba7705b2
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -26,8 +26,8 @@ namespace network {
class Socket {
public:
virtual int recv(void* buffer, size_t length, bool blocking) = 0;
virtual int send(const void* buffer, size_t length) = 0;
virtual int recv(char* buffer, size_t length, bool blocking) = 0;
virtual int send(const char* buffer, size_t length) = 0;
virtual void close() = 0;
virtual bool isOpen() const = 0;