IPAddress.h
Go to the documentation of this file.
#ifndef __IPAddress_h__
#define __IPAddress_h__
#include "includes"
#include "Object.h"
namespace core {
class IPAddress : public Object {
public:
IPAddress();
IPAddress(std::string address);
IPAddress(std::string address, int port);
~IPAddress();
struct sockaddr_in addr;
socklen_t addressLength;
struct sockaddr * getPointer();
std::string getClientAddress();
std::string getClientAddressAndPort();
int getClientPort();
};
}
#endif
core::IPAddress::getPointer
struct sockaddr * getPointer()
Definition: IPAddress.cpp:31
core::IPAddress::getClientPort
int getClientPort()
Get the client network port number.
Definition: IPAddress.cpp:47
core::IPAddress::addressLength
socklen_t addressLength
Definition: IPAddress.h:18
core::IPAddress::IPAddress
IPAddress()
Definition: IPAddress.cpp:5
core::IPAddress::~IPAddress
~IPAddress()
Definition: IPAddress.cpp:27
core::IPAddress
Definition: IPAddress.h:9
core
Definition: Command.cpp:5
core::Object
Definition: Object.h:8
core::IPAddress::getClientAddress
std::string getClientAddress()
Get the client network address as xxx.xxx.xxx.xxx.
Definition: IPAddress.cpp:35
core::IPAddress::addr
struct sockaddr_in addr
Definition: IPAddress.h:17
core::IPAddress::getClientAddressAndPort
std::string getClientAddressAndPort()
Get the client network address and port as xxx.xxx.xxx.xxx:ppppp.
Definition: IPAddress.cpp:40
Object.h