From 9be676d55b73bcc1be535c628cc5371c829c8958 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Tue, 28 Feb 2023 16:32:54 -0400 Subject: TSocket: Make the flag helpers public --- include/pso/TSocket.h | 32 ++++++++++++++++---------------- 1 file 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); -- cgit v1.2.3-13-gbd6f