Initial repository 1.0.0
This commit is contained in:
commit
d8b1275884
1861 files changed
+66342
No files matched your search
+26
@@ -0,0 +1,26 @@
|
||||
#ifndef __IPAddress_h__
|
||||
#define __IPAddress_h__
|
||||
|
||||
#include "includes"
|
||||
#include "Object.h"
|
||||
|
||||
namespace core {
|
||||
|
||||
class IPAddress : public Object {
|
||||
|
||||
public:
|
||||
IPAddress();
|
||||
~IPAddress();
|
||||
|
||||
struct sockaddr_in address;
|
||||
socklen_t addressLength;
|
||||
|
||||
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.
|
||||
int getClientPort(); ///<Get the client network port number.
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user