2013-10-03 17:38:47 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* SocketAddress.h *
|
|
|
|
* *
|
|
|
|
* System::Net::SocketAddress class definition file. *
|
|
|
|
* Copyright (c) XFX Team. All rights reserved. *
|
|
|
|
*****************************************************************************/
|
2013-05-05 18:18:41 +02:00
|
|
|
#ifndef _SYSTEM_NET_SOCKETADDRESS_
|
|
|
|
#define _SYSTEM_NET_SOCKETADDRESS_
|
|
|
|
|
2014-07-15 17:22:43 +02:00
|
|
|
#include <System/Array.h>
|
2014-07-14 15:03:46 +02:00
|
|
|
#include <System/Object.h>
|
|
|
|
#include <System/Types.h>
|
|
|
|
#include <System/Net/Sockets/Enums.h>
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
using namespace System::Net::Sockets;
|
|
|
|
|
|
|
|
namespace System
|
|
|
|
{
|
|
|
|
namespace Net
|
|
|
|
{
|
2013-10-03 17:38:47 +02:00
|
|
|
/**
|
|
|
|
* Stores serialized information from System::Net::EndPoint derived classes.
|
|
|
|
*/
|
|
|
|
class SocketAddress : public Object
|
2013-05-05 18:18:41 +02:00
|
|
|
{
|
|
|
|
private:
|
2014-07-15 17:22:43 +02:00
|
|
|
Array<byte> data;
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
public:
|
|
|
|
AddressFamily_t getFamily();
|
|
|
|
int getSize();
|
|
|
|
|
|
|
|
SocketAddress(AddressFamily_t family);
|
|
|
|
SocketAddress(AddressFamily_t family, int size);
|
|
|
|
|
2014-07-14 15:03:46 +02:00
|
|
|
bool Equals(Object const * const obj) const;
|
|
|
|
int GetHashCode() const;
|
|
|
|
static const Type& GetType();
|
2013-10-03 17:38:47 +02:00
|
|
|
const String ToString();
|
2014-07-15 17:22:43 +02:00
|
|
|
|
|
|
|
const byte& operator[](const int index) const;
|
|
|
|
byte& operator[](const int index);
|
2013-05-05 18:18:41 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_SYSTEM_NET_SOCKETADDRESS_
|