2008-03-05 09:52:00 -05:00
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Microsoft Research Singularity
|
|
|
|
//
|
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
using System.Net.Sockets;
|
|
|
|
|
2008-11-17 18:29:00 -05:00
|
|
|
namespace System.Net
|
|
|
|
{
|
2008-03-05 09:52:00 -05:00
|
|
|
|
|
|
|
// Generic abstraction to identify network addresses
|
|
|
|
|
|
|
|
/// <devdoc>
|
|
|
|
/// <para>
|
|
|
|
/// Identifies a network address.
|
|
|
|
/// </para>
|
|
|
|
/// </devdoc>
|
|
|
|
public abstract class EndPoint {
|
|
|
|
/// <devdoc>
|
|
|
|
/// <para>
|
|
|
|
/// Returns the Address Family to which the EndPoint belongs.
|
|
|
|
/// </para>
|
|
|
|
/// </devdoc>
|
|
|
|
|
|
|
|
public virtual AddressFamily AddressFamily {
|
|
|
|
get {
|
|
|
|
throw new NotSupportedException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <devdoc>
|
|
|
|
/// <para>
|
|
|
|
/// Serializes EndPoint information into a SocketAddress structure.
|
|
|
|
/// </para>
|
|
|
|
/// </devdoc>
|
|
|
|
public virtual SocketAddress Serialize() {
|
|
|
|
throw new NotSupportedException();
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <devdoc>
|
|
|
|
/// <para>
|
|
|
|
/// Creates an EndPoint instance from a SocketAddress structure.
|
|
|
|
/// </para>
|
|
|
|
/// </devdoc>
|
|
|
|
public abstract EndPoint Create(SocketAddress! socketAddress);
|
|
|
|
// {
|
|
|
|
// throw new NotSupportedException();
|
|
|
|
// }
|
|
|
|
|
|
|
|
}; // abstract class EndPoint
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace System.Net
|
|
|
|
|