summaryrefslogtreecommitdiff
path: root/Kernel/FileDescriptor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/FileDescriptor.cpp')
-rw-r--r--Kernel/FileDescriptor.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Kernel/FileDescriptor.cpp b/Kernel/FileDescriptor.cpp
index 5b9810339b..06c6f34991 100644
--- a/Kernel/FileDescriptor.cpp
+++ b/Kernel/FileDescriptor.cpp
@@ -19,9 +19,9 @@ RetainPtr<FileDescriptor> FileDescriptor::create(RetainPtr<CharacterDevice>&& de
return adopt(*new FileDescriptor(move(device)));
}
-RetainPtr<FileDescriptor> FileDescriptor::create(RetainPtr<Socket>&& socket)
+RetainPtr<FileDescriptor> FileDescriptor::create(RetainPtr<Socket>&& socket, SocketRole role)
{
- return adopt(*new FileDescriptor(move(socket)));
+ return adopt(*new FileDescriptor(move(socket), role));
}
RetainPtr<FileDescriptor> FileDescriptor::create_pipe_writer(FIFO& fifo)
@@ -44,8 +44,9 @@ FileDescriptor::FileDescriptor(RetainPtr<CharacterDevice>&& device)
{
}
-FileDescriptor::FileDescriptor(RetainPtr<Socket>&& socket)
+FileDescriptor::FileDescriptor(RetainPtr<Socket>&& socket, SocketRole role)
: m_socket(move(socket))
+ , m_socket_role(role)
{
}