1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/System/Net/DnsEndPoint.h
Tom Lint da0bfcaa6f Added additional types to System::Net namespaces
Fixed code style
Fixed error in Curve.cpp
Added Curve* classes to makefile
2014-07-14 15:03:46 +02:00

46 lines
1.2 KiB
C++

/*****************************************************************************
* DnsEndPoint.h *
* *
* System::Net::DnsEndPoint class definition file. *
* Copyright (c) XFX Team. All rights reserved. *
*****************************************************************************/
#ifndef _SYSTEM_NET_DNSENDPOINT_
#define _SYSTEM_NET_DNSENDPOINT_
#include "EndPoint.h"
#include <System/Net/Sockets/Enums.h>
#include <System/String.h>
using namespace System::Net::Sockets;
namespace System
{
namespace Net
{
/**
* Represents a network endpoint as a host name or a string representation of an IP address and a port number.
*/
class DnsEndPoint : public EndPoint
{
private:
AddressFamily_t addressFamily;
int port;
String host;
public:
AddressFamily_t getAddressFamily() const;
const String getHost() const;
int getPort() const;
DnsEndPoint(const String& host, const int port);
DnsEndPoint(const String& host, const int port, const AddressFamily_t addressFamily);
bool Equals(Object const * const obj) const;
int GetHashCode() const;
const String ToString() const;
};
}
}
#endif //_SYSTEM_NET_DNSENDPOINT_