The Labs \ Source Viewer \ SSCLI \ System.Net \ EndPoint

  1. //------------------------------------------------------------------------------
  2. // <copyright file="EndPoint.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. using System;
  16. using System.Runtime.InteropServices;
  17. using System.Net.Sockets;
  18. namespace System.Net
  19. {
  20.    
  21.     // Generic abstraction to identify network addresses
  22.    
  23.     /// <devdoc>
  24.     /// <para>
  25.     /// Identifies a network address.
  26.     /// </para>
  27.     /// </devdoc>
  28.     [Serializable()]
  29.     public abstract class EndPoint
  30.     {
  31.         /// <devdoc>
  32.         /// <para>
  33.         /// Returns the Address Family to which the EndPoint belongs.
  34.         /// </para>
  35.         /// </devdoc>
  36.        
  37.         public virtual AddressFamily AddressFamily {
  38.             get {
  39.                 throw ExceptionHelper.PropertyNotImplementedException;
  40.             }
  41.         }
  42.        
  43.         /// <devdoc>
  44.         /// <para>
  45.         /// Serializes EndPoint information into a SocketAddress structure.
  46.         /// </para>
  47.         /// </devdoc>
  48.         public virtual SocketAddress Serialize()
  49.         {
  50.             throw ExceptionHelper.MethodNotImplementedException;
  51.         }
  52.        
  53.         /// <devdoc>
  54.         /// <para>
  55.         /// Creates an EndPoint instance from a SocketAddress structure.
  56.         /// </para>
  57.         /// </devdoc>
  58.         public virtual EndPoint Create(SocketAddress socketAddress)
  59.         {
  60.             throw ExceptionHelper.MethodNotImplementedException;
  61.         }
  62.        
  63.     }
  64.     // abstract class EndPoint
  65.    
  66. }
  67. // namespace System.Net

Developer Fusion