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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="ConnectionModes.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.    
  18.     // Used to indicate the mode of how we use a transport
  19.     // Not sure whether this is the right way to define an enum
  20.     /// <devdoc>
  21.     /// <para>
  22.     /// Specifies the mode used to establish a connection with a server.
  23.     /// </para>
  24.     /// </devdoc>
  25.     internal enum ConnectionModes
  26.     {
  27.         /// <devdoc>
  28.         /// <para>
  29.         /// Non-persistent, one request per connection.
  30.         /// </para>
  31.         /// </devdoc>
  32.         Single,
  33.         // Non-Persistent, one request per connection
  34.         /// <devdoc>
  35.         /// <para>
  36.         /// Persistent connection, one request/response at a time.
  37.         /// </para>
  38.         /// </devdoc>
  39.         Persistent,
  40.         // Persistant, one request/response at a time
  41.         /// <devdoc>
  42.         /// <para>
  43.         /// Persistent connection, many requests/responses in order.
  44.         /// </para>
  45.         /// </devdoc>
  46.         Pipeline,
  47.         // Persistant, many requests/responses in order
  48.         /// <devdoc>
  49.         /// <para>
  50.         /// Persistent connection, many requests/responses out of order.
  51.         /// </para>
  52.         /// </devdoc>
  53.         Mux
  54.         // Persistant, many requests/responses out of order
  55.     }
  56.     // enum ConnectionModes
  57.    
  58. }
  59. // namespace System.Net

Developer Fusion