diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2023-02-28 16:32:54 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2023-02-28 16:32:54 -0400 |
commit | 9be676d55b73bcc1be535c628cc5371c829c8958 (patch) | |
tree | 7725afd2cc322bc2a5ce8164246dcd16d45889dc /include | |
parent | 76f08283cb0c5e988251a3594b0458716d2dfbc1 (diff) |
TSocket: Make the flag helpers public
Diffstat (limited to 'include')
-rw-r--r-- | include/pso/TSocket.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/include/pso/TSocket.h b/include/pso/TSocket.h index 31a4795..bbf60fc 100644 --- a/include/pso/TSocket.h +++ b/include/pso/TSocket.h @@ -15,22 +15,6 @@ union ipv4_addr { class TSocket : public TObject { private: - void set_flags(u8 flags) { - m_sock_flags |= flags; - }; - - void clear_flags(u8 flags) { - m_sock_flags &= ~flags; - }; - - void toggle_flags(u8 flags) { - m_sock_flags ^= flags; - }; - - u8 get_flags(u8 flags) { - return m_sock_flags & flags; - }; - ipv4_addr m_dst_addr; u16 m_dst_port; u16 m_src_port; @@ -64,6 +48,22 @@ public: const u8 next(); int is_empty(); + void set_flags(u8 flags) { + m_sock_flags |= flags; + }; + + void clear_flags(u8 flags) { + m_sock_flags &= ~flags; + }; + + void toggle_flags(u8 flags) { + m_sock_flags ^= flags; + }; + + u8 get_flags(u8 flags) { + return m_sock_flags & flags; + }; + PRIVATE_MEMBER_ACCESSORS(ipv4_addr, dst_addr); PRIVATE_MEMBER_ACCESSORS(u16, dst_port); PRIVATE_MEMBER_ACCESSORS(u16, src_port); |