1
Fork 0
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:
Andreas Kling 2019-03-13 14:22:27 +01:00
parent 562663df7c
commit b59d588c04
6 changed files with 100 additions and 4 deletions

View file

@ -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 };
};