mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:57:44 +00:00
Kernel: Add Socket::set_role() and use it everywhere
Instead of having Socket subclasses write their role into Socket::m_role directly, add a setter to do this.
This commit is contained in:
parent
70b2225b3d
commit
a28cd921a1
6 changed files with 10 additions and 8 deletions
|
@ -140,6 +140,8 @@ protected:
|
|||
void set_origin(Process const&);
|
||||
void set_acceptor(Process const&);
|
||||
|
||||
void set_role(Role role) { m_role = role; }
|
||||
|
||||
protected:
|
||||
ucred m_origin { 0, 0, 0 };
|
||||
ucred m_acceptor { 0, 0, 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue