60 lines
1.5 KiB
C#
60 lines
1.5 KiB
C#
|
////////////////////////////////////////////////////////////////////////////////
|
||
|
//
|
||
|
// Microsoft Research Singularity
|
||
|
//
|
||
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
//
|
||
|
// File: EndPoint.cs
|
||
|
//
|
||
|
|
||
|
using System;
|
||
|
using System.Runtime.InteropServices;
|
||
|
using System.Net.Sockets;
|
||
|
|
||
|
namespace System.Net {
|
||
|
|
||
|
// 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
|
||
|
|