/home/barant/Development/BMA/server_core/ServerCore/BMAIPAddress.h
#ifndef __BMAIPAddress_h__
#define __BMAIPAddress_h__
#include "includes"
#include "BMAObject.h"
class BMAIPAddress : public BMAObject {
public:
BMAIPAddress();
~BMAIPAddress();
struct sockaddr_in address;
socklen_t addressLength;
std::string getClientAddress();
std::string getClientAddressAndPort();
int getClientPort();
};
#endif
BMAIPAddress::getClientAddressAndPort
std::string getClientAddressAndPort()
Get the client network address and port as xxx.xxx.xxx.xxx:ppppp.
Definition: BMAIPAddress.cpp:16
BMAIPAddress::getClientPort
int getClientPort()
Get the client network port number.
Definition: BMAIPAddress.cpp:23
BMAIPAddress
Definition: BMAIPAddress.h:7
BMAIPAddress::getClientAddress
std::string getClientAddress()
Get the client network address as xxx.xxx.xxx.xxx.
Definition: BMAIPAddress.cpp:11
BMAObject
Definition: BMAObject.h:6