Kernel: Start work on network stack
This commit is contained in:
21
kernel/include/kernel/Networking/NetworkSocket.h
Normal file
21
kernel/include/kernel/Networking/NetworkSocket.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include <kernel/FS/TmpFS/Inode.h>
|
||||
#include <kernel/Networking/NetworkInterface.h>
|
||||
|
||||
namespace Kernel
|
||||
{
|
||||
|
||||
class NetworkSocket : public TmpInode
|
||||
{
|
||||
public:
|
||||
void bind_interface(NetworkInterface*);
|
||||
|
||||
protected:
|
||||
NetworkSocket(mode_t mode, uid_t uid, gid_t gid);
|
||||
|
||||
protected:
|
||||
NetworkInterface* m_interface = nullptr;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user