BMA Server Framework
/home/barant/Development/BMA/server_core/ServerCore/IPAddress.h
1 #ifndef __IPAddress_h__
2 #define __IPAddress_h__
3 
4 #include "includes"
5 #include "Object.h"
6 
7 namespace core {
8 
9  class IPAddress : public Object {
10 
11  public:
12  IPAddress();
13  ~IPAddress();
14 
15  struct sockaddr_in address;
16  socklen_t addressLength;
17 
18  std::string getClientAddress();
19  std::string getClientAddressAndPort();
20  int getClientPort();
21 
22  };
23 
24 }
25 
26 #endif
int getClientPort()
Get the client network port number.
Definition: IPAddress.cpp:25
Definition: Command.cpp:4
std::string getClientAddressAndPort()
Get the client network address and port as xxx.xxx.xxx.xxx:ppppp.
Definition: IPAddress.cpp:18
Definition: IPAddress.h:9
std::string getClientAddress()
Get the client network address as xxx.xxx.xxx.xxx.
Definition: IPAddress.cpp:13
Definition: Object.h:8