1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:07:35 +00:00

Kernel: Support binding to INADDR_ANY (all IPs)

This commit is contained in:
Conrad Pankoff 2019-08-09 12:38:56 +10:00 committed by Andreas Kling
parent 3eb659a2bb
commit 4fcbbd24f7
3 changed files with 17 additions and 8 deletions

View file

@ -39,6 +39,7 @@ public:
const IPv4Address& local_address() const { return m_local_address; }
u16 local_port() const { return m_local_port; }
void set_local_port(u16 port) { m_local_port = port; }
bool has_specific_local_address() { return m_local_address.to_u32() != 0; }
const IPv4Address& peer_address() const { return m_peer_address; }
u16 peer_port() const { return m_peer_port; }