////////////////////////////////////////////////////////////////////////////////
//
// Microsoft Research Singularity
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
using System;
using System.Runtime.InteropServices;
using System.Net.Sockets;
namespace System.Net
{
// Generic abstraction to identify network addresses
///
///
/// Identifies a network address.
///
///
public abstract class EndPoint {
///
///
/// Returns the Address Family to which the EndPoint belongs.
///
///
public virtual AddressFamily AddressFamily {
get {
throw new NotSupportedException();
}
}
///
///
/// Serializes EndPoint information into a SocketAddress structure.
///
///
public virtual SocketAddress Serialize() {
throw new NotSupportedException();
}
///
///
/// Creates an EndPoint instance from a SocketAddress structure.
///
///
public abstract EndPoint Create(SocketAddress! socketAddress);
// {
// throw new NotSupportedException();
// }
}; // abstract class EndPoint
} // namespace System.Net