mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:37:43 +00:00
Kernel: Start fleshing out an UDP implementation.
This commit is contained in:
parent
562663df7c
commit
b59d588c04
6 changed files with 100 additions and 4 deletions
|
@ -29,6 +29,9 @@ public:
|
|||
|
||||
Lock& lock() { return m_lock; }
|
||||
|
||||
word source_port() const { return m_source_port; }
|
||||
word destination_port() const { return m_destination_port; }
|
||||
|
||||
private:
|
||||
IPv4Socket(int type, int protocol);
|
||||
virtual bool is_ipv4() const override { return true; }
|
||||
|
@ -42,6 +45,9 @@ private:
|
|||
|
||||
SinglyLinkedList<ByteBuffer> m_receive_queue;
|
||||
|
||||
word m_source_port { 0 };
|
||||
word m_destination_port { 0 };
|
||||
|
||||
Lock m_lock;
|
||||
bool m_can_read { false };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue