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_
|
|
|
|
|
|
|
|
#include "../Object.h"
|
|
|
|
#include "../Types.h"
|
|
|
|
#include "Sockets/Enums.h"
|
|
|
|
|
|
|
|
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:
|
|
|
|
AddressFamily_t addressFamily;
|
|
|
|
int bufferSize;
|
|
|
|
|
|
|
|
public:
|
|
|
|
AddressFamily_t getFamily();
|
|
|
|
int getSize();
|
|
|
|
byte operator[](int offset);
|
|
|
|
|
|
|
|
SocketAddress(AddressFamily_t family);
|
|
|
|
SocketAddress(AddressFamily_t family, int size);
|
|
|
|
|
2013-10-03 17:38:47 +02:00
|
|
|
const Type& GetType();
|
|
|
|
const String ToString();
|
2013-05-05 18:18:41 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_SYSTEM_NET_SOCKETADDRESS_
|