Changed TCPServer to use IPAddress.

This commit is contained in:
Brad Arant committed 2019-02-22 19:48:25 -08:00
1 parent 8d6f414086
commit 41ff757f09
183 files changed
+2139 -878

No files matched your search

+3
View File
@@ -10,10 +10,13 @@ namespace core {
public:
IPAddress();
IPAddress(std::string address);
IPAddress(std::string address, short int port);
~IPAddress();
struct sockaddr_in address;
socklen_t addressLength;
struct sockaddr *pointer;
std::string getClientAddress(); ///<Get the client network address as xxx.xxx.xxx.xxx.
std::string getClientAddressAndPort(); ///<Get the client network address and port as xxx.xxx.xxx.xxx:ppppp.