mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-27 01:56:21 +00:00
Kernel: More work on sockets. Fleshing out connect().
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <LibC/errno_numbers.h>
|
||||
#include "FileSystem.h"
|
||||
#include "MemoryManager.h"
|
||||
#include <Kernel/LocalSocket.h>
|
||||
|
||||
static dword s_lastFileSystemID;
|
||||
static HashMap<dword, FS*>* s_fs_map;
|
||||
@@ -152,3 +153,17 @@ void Inode::set_vmo(VMObject& vmo)
|
||||
{
|
||||
m_vmo = vmo.make_weak_ptr();
|
||||
}
|
||||
|
||||
bool Inode::bind_socket(LocalSocket& socket)
|
||||
{
|
||||
ASSERT(!m_socket);
|
||||
m_socket = socket;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Inode::unbind_socket()
|
||||
{
|
||||
ASSERT(m_socket);
|
||||
m_socket = nullptr;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user