mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:27:35 +00:00
LibCore: Add CTCPServer
This is pretty much a find/replace copy of CLocalServer, and some modifications to CTCPSocket and CSocketAddress to support it.
This commit is contained in:
parent
79e22acb22
commit
ed66f1d6d4
6 changed files with 118 additions and 1 deletions
|
@ -1,8 +1,14 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Badge.h>
|
||||
#include <LibCore/CSocket.h>
|
||||
|
||||
class CTCPServer;
|
||||
|
||||
class CTCPSocket final : public CSocket {
|
||||
C_OBJECT(CTCPSocket)
|
||||
public:
|
||||
explicit CTCPSocket(CObject* parent = nullptr);
|
||||
CTCPSocket(Badge<CTCPServer>, int fd, CObject* parent = nullptr);
|
||||
virtual ~CTCPSocket() override;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue