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