mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
Added implicit conversion to base types to all primary types (UInt32 et al) Added implicit conversion from System::String to const char*
35 lines
670 B
C++
35 lines
670 B
C++
#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
|
|
{
|
|
// Stores serialized information from System::Net::EndPoint derived classes.
|
|
class SocketAddress : public virtual Object
|
|
{
|
|
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);
|
|
|
|
char* ToString();
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif //_SYSTEM_NET_SOCKETADDRESS_
|