diff options
Diffstat (limited to 'Libraries/LibCore/CTCPSocket.cpp')
-rw-r--r-- | Libraries/LibCore/CTCPSocket.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Libraries/LibCore/CTCPSocket.cpp b/Libraries/LibCore/CTCPSocket.cpp index 5f3702a482..4bfe37d4fe 100644 --- a/Libraries/LibCore/CTCPSocket.cpp +++ b/Libraries/LibCore/CTCPSocket.cpp @@ -1,5 +1,14 @@ #include <LibCore/CTCPSocket.h> #include <sys/socket.h> +#include <errno.h> + +CTCPSocket::CTCPSocket(Badge<CTCPServer>, int fd, CObject* parent) + : CSocket(CSocket::Type::TCP, parent) +{ + set_fd(fd); + set_mode(CIODevice::ReadWrite); + set_error(0); +} CTCPSocket::CTCPSocket(CObject* parent) : CSocket(CSocket::Type::TCP, parent) |