The Labs \ Source Viewer \ SSCLI \ System.Net.Sockets \ SocketOptionLevel

  1. //------------------------------------------------------------------------------
  2. // <copyright file="SocketOptionLevel.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.Sockets
  16. {
  17.     using System;
  18.    
  19.     //
  20.     // Option flags per-socket.
  21.     //
  22.    
  23.     /// <devdoc>
  24.     /// <para>
  25.     /// Defines socket option levels for the <see cref='System.Net.Sockets.Socket'/> class.
  26.     /// </para>
  27.     /// </devdoc>
  28.     //UEUE
  29.     public enum SocketOptionLevel
  30.     {
  31.        
  32.         /// <devdoc>
  33.         /// <para>
  34.         /// Indicates socket options apply to the socket itself.
  35.         /// </para>
  36.         /// </devdoc>
  37.         Socket = 65535,
  38.        
  39.         /// <devdoc>
  40.         /// <para>
  41.         /// Indicates socket options apply to IP sockets.
  42.         /// </para>
  43.         /// </devdoc>
  44.         IP = ProtocolType.IP,
  45.        
  46.         /// <devdoc>
  47.         /// <para>
  48.         /// Indicates socket options apply to IPv6 sockets.
  49.         /// </para>
  50.         /// </devdoc>
  51.         IPv6 = ProtocolType.IPv6,
  52.        
  53.         /// <devdoc>
  54.         /// <para>
  55.         /// Indicates socket options apply to Tcp sockets.
  56.         /// </para>
  57.         /// </devdoc>
  58.         Tcp = ProtocolType.Tcp,
  59.        
  60.         /// <devdoc>
  61.         /// <para>
  62.         /// Indicates socket options apply to Udp sockets.
  63.         /// </para>
  64.         /// </devdoc>
  65.         //UEUE
  66.         Udp = ProtocolType.Udp
  67.        
  68.     }
  69.     // enum SocketOptionLevel
  70.    
  71. }
  72. // namespace System.Net.Sockets

Developer Fusion