1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:37:34 +00:00

LibCore: Allow TCPServer to be blocking

This commit is contained in:
stelar7 2021-05-25 21:40:56 +02:00 committed by Andreas Kling
parent e1b0719435
commit 63b1296821
2 changed files with 12 additions and 0 deletions

View file

@ -19,6 +19,7 @@ public:
bool is_listening() const { return m_listening; }
bool listen(const IPv4Address& address, u16 port);
void set_blocking(bool blocking);
RefPtr<TCPSocket> accept();