2001-10-06 18:13:28 +04:00
|
|
|
#ifndef CNETWORKADDRESS_H
|
|
|
|
#define CNETWORKADDRESS_H
|
|
|
|
|
|
|
|
#include "BasicTypes.h"
|
2001-11-19 03:33:36 +03:00
|
|
|
#include "CNetwork.h"
|
2001-10-06 18:13:28 +04:00
|
|
|
#include "XSocket.h"
|
|
|
|
|
|
|
|
class CString;
|
|
|
|
|
|
|
|
class CNetworkAddress {
|
2002-04-29 18:40:01 +04:00
|
|
|
public:
|
2001-10-14 20:58:01 +04:00
|
|
|
CNetworkAddress(UInt16 port);
|
|
|
|
CNetworkAddress(const CString& hostname, UInt16 port);
|
2001-10-06 18:13:28 +04:00
|
|
|
~CNetworkAddress();
|
|
|
|
|
|
|
|
// manipulators
|
|
|
|
|
|
|
|
// accessors
|
|
|
|
|
2001-11-19 03:33:36 +03:00
|
|
|
const CNetwork::Address* getAddress() const;
|
|
|
|
CNetwork::AddressLength getAddressLength() const;
|
2001-10-06 18:13:28 +04:00
|
|
|
|
2002-04-29 18:40:01 +04:00
|
|
|
private:
|
2001-11-19 03:33:36 +03:00
|
|
|
CNetwork::Address m_address;
|
2001-10-06 18:13:28 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|