summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/pso/TSocket.h32
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);