barrier/net/CNetworkAddress.h

28 lines
460 B
C
Raw Normal View History

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