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:
parent
2f373a27a2
commit
be2b585ca6
7 changed files with 42 additions and 4 deletions
|
@ -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&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue