summaryrefslogtreecommitdiff
path: root/src/core/session.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/session.hpp')
-rw-r--r--src/core/session.hpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/core/session.hpp b/src/core/session.hpp
index 9a953fc..5ca193c 100644
--- a/src/core/session.hpp
+++ b/src/core/session.hpp
@@ -1,10 +1,10 @@
#pragma once
+#include "../debug/format.hpp"
#include "../misc/FileDescriptor.hpp"
+#include "../misc/memory.hpp"
#include "chatManager.hpp"
-#include "../debug/format.hpp"
#include <format>
-#include "../misc/memory.hpp"
#include <netinet/in.h>
#include <optional>
#include <string>
@@ -33,7 +33,7 @@ class CSession {
UP<SRecvData> read();
UP<SRecvData> read(const std::string &msg, bool bypassDeaf = false);
- bool write(const std::string &msg);
+ bool write(const std::string &msg);
template <typename... Args>
bool write(std::format_string<Args...> fmt, Args &&...args);
template <typename... Args>
@@ -57,14 +57,14 @@ class CSession {
WRITE
};
- WP<CSession> self;
+ WP<CSession> self;
SP<CFileDescriptor> m_sockfd;
- sockaddr_in m_addr;
- socklen_t m_addrLen = sizeof(m_addr);
- std::string m_name;
- std::string m_ip;
- int m_port;
- bool m_isAdmin = false;
+ sockaddr_in m_addr;
+ socklen_t m_addrLen = sizeof(m_addr);
+ std::string m_name;
+ std::string m_ip;
+ int m_port;
+ bool m_isAdmin = false;
std::optional<std::string> m_szReading = std::nullopt;
bool m_bMuted = false;