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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="SocketShutdown.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.     /// <devdoc>
  20.     /// <para>
  21.     /// Defines constants used by the <see cref='System.Net.Sockets.Socket.Shutdown'/> method.
  22.     /// </para>
  23.     /// </devdoc>
  24.     public enum SocketShutdown
  25.     {
  26.         /// <devdoc>
  27.         /// <para>
  28.         /// Shutdown sockets for receive.
  29.         /// </para>
  30.         /// </devdoc>
  31.         Receive = 0,
  32.         /// <devdoc>
  33.         /// <para>
  34.         /// Shutdown socket for send.
  35.         /// </para>
  36.         /// </devdoc>
  37.         Send = 1,
  38.         /// <devdoc>
  39.         /// <para>
  40.         /// Shutdown socket for both send and receive.
  41.         /// </para>
  42.         /// </devdoc>
  43.         Both = 2
  44.        
  45.     }
  46.     // enum SocketShutdown
  47.    
  48. }
  49. // namespace System.Net.Sockets

Developer Fusion