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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="SocketType.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.    
  18.     /// <devdoc>
  19.     /// <para>
  20.     /// Specifies the type of socket an instance of the <see cref='System.Net.Sockets.Socket'/> class represents.
  21.     /// </para>
  22.     /// </devdoc>
  23.     public enum SocketType
  24.     {
  25.        
  26.         /// <devdoc>
  27.         /// <para>[To be supplied.]</para>
  28.         /// </devdoc>
  29.         Stream = 1,
  30.         // stream socket
  31.         /// <devdoc>
  32.         /// <para>[To be supplied.]</para>
  33.         /// </devdoc>
  34.         Dgram = 2,
  35.         // datagram socket
  36.         /// <devdoc>
  37.         /// <para>[To be supplied.]</para>
  38.         /// </devdoc>
  39.         Raw = 3,
  40.         // raw-protocolinterface
  41.         /// <devdoc>
  42.         /// <para>[To be supplied.]</para>
  43.         /// </devdoc>
  44.         Rdm = 4,
  45.         // reliably-delivered message
  46.         /// <devdoc>
  47.         /// <para>[To be supplied.]</para>
  48.         /// </devdoc>
  49.         Seqpacket = 5,
  50.         // sequenced packet stream
  51.         /// <devdoc>
  52.         /// <para>[To be supplied.]</para>
  53.         /// </devdoc>
  54.         Unknown = -1
  55.         // Unknown socket type
  56.     }
  57.     // enum SocketType
  58. }
  59. // namespace System.Net.Sockets

Developer Fusion