diff options
author | Conrad Pankoff <deoxxa@fknsrs.biz> | 2019-08-05 20:47:30 +1000 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-08-05 12:53:07 +0200 |
commit | ed66f1d6d445cb9cc15421a60c85556da9e2aaed (patch) | |
tree | 72abe7a9035dcb3585818bd3e2b97ce77d665030 /Libraries/LibCore/CTCPSocket.h | |
parent | 79e22acb225d8aaa4d20540afa50faac17ea29bf (diff) | |
download | serenity-ed66f1d6d445cb9cc15421a60c85556da9e2aaed.zip |
LibCore: Add CTCPServer
This is pretty much a find/replace copy of CLocalServer, and some
modifications to CTCPSocket and CSocketAddress to support it.
Diffstat (limited to 'Libraries/LibCore/CTCPSocket.h')
-rw-r--r-- | Libraries/LibCore/CTCPSocket.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Libraries/LibCore/CTCPSocket.h b/Libraries/LibCore/CTCPSocket.h index d7e72fb824..7eccc7a6b7 100644 --- a/Libraries/LibCore/CTCPSocket.h +++ b/Libraries/LibCore/CTCPSocket.h @@ -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; }; |