diff options
Diffstat (limited to 'csgo-loader/csgo-server/Networking/TCPServer.hpp')
| -rw-r--r-- | csgo-loader/csgo-server/Networking/TCPServer.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/csgo-loader/csgo-server/Networking/TCPServer.hpp b/csgo-loader/csgo-server/Networking/TCPServer.hpp index a29a796..9459136 100644 --- a/csgo-loader/csgo-server/Networking/TCPServer.hpp +++ b/csgo-loader/csgo-server/Networking/TCPServer.hpp @@ -24,6 +24,7 @@ namespace Networking SOCKET m_Socket;
Wrapper::Encryption m_Encryption;
char m_IpAddress[32];
+
public:
// Initialiser for TCPConnection class.
TCPConnection(SOCKET Connection, const char *IpAddress, Wrapper::Encryption &RSA) :
@@ -54,6 +55,8 @@ namespace Networking {
return m_Encryption.GetKey();
}
+
+ char *GetIpAddress() { return m_IpAddress; }
};
// Basic TCP server. Supports custom connection handling (pass a lambda to the handler list).
|
