1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:57:45 +00:00

LibCore: Add CSocket::bind() (virtual) and CSocket::listen().

These will be useful for implementing server sockets.
This commit is contained in:
Andreas Kling 2019-07-26 22:39:16 +02:00
parent 2f373a27a2
commit be2b585ca6
7 changed files with 42 additions and 4 deletions

View file

@ -22,6 +22,10 @@ public:
bool connect(const CSocketAddress&, int port);
bool connect(const CSocketAddress&);
virtual bool bind(const CSocketAddress&) = 0;
bool listen();
ByteBuffer receive(int max_size);
bool send(const ByteBuffer&);