Changed TCPServer to use IPAddress.
This commit is contained in:
1 parent
8d6f414086
commit
41ff757f09
183 files changed
+2139
-878
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user