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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="TransportType.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. namespace System.Net
  16. {
  17.     using System;
  18.    
  19.    
  20.     /// <devdoc>
  21.     /// <para>
  22.     /// Defines the transport type allowed for the socket.
  23.     /// </para>
  24.     /// </devdoc>
  25.     public enum TransportType
  26.     {
  27.         /// <devdoc>
  28.         /// <para>
  29.         /// Udp connections are allowed.
  30.         /// </para>
  31.         /// </devdoc>
  32.         Udp = 1,
  33.         Connectionless = 1,
  34.         /// <devdoc>
  35.         /// <para>
  36.         /// TCP connections are allowed.
  37.         /// </para>
  38.         /// </devdoc>
  39.         Tcp = 2,
  40.         ConnectionOriented = 2,
  41.         /// <devdoc>
  42.         /// <para>
  43.         /// Any connection is allowed.
  44.         /// </para>
  45.         /// </devdoc>
  46.         All = 3
  47.        
  48.     }
  49.     // enum TransportType
  50. }
  51. // namespace System.Net

Developer Fusion