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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="SocketFlags.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.     /// Provides constant values for socket messages.
  22.     /// </para>
  23.     /// </devdoc>
  24.     //UEUE
  25.    
  26.     [Flags()]
  27.     public enum SocketFlags
  28.     {
  29.        
  30.         /// <devdoc>
  31.         /// <para>
  32.         /// Use no flags for this call.
  33.         /// </para>
  34.         /// </devdoc>
  35.         None = 0,
  36.        
  37.         /// <devdoc>
  38.         /// <para>
  39.         /// Process out-of-band data.
  40.         /// </para>
  41.         /// </devdoc>
  42.         OutOfBand = 1,
  43.        
  44.         /// <devdoc>
  45.         /// <para>
  46.         /// Peek at incoming message.
  47.         /// </para>
  48.         /// </devdoc>
  49.         Peek = 2,
  50.        
  51.         /// <devdoc>
  52.         /// <para>
  53.         /// Send without using routing tables.
  54.         /// </para>
  55.         /// </devdoc>
  56.         DontRoute = 4,
  57.        
  58.         // see: http://as400bks.rochester.ibm.com/pubs/html/as400/v4r5/ic2978/info/apis/recvms.htm
  59.         MaxIOVectorLength = 16,
  60.        
  61.         /// <devdoc>
  62.         /// <para>
  63.         /// Partial send or recv for message.
  64.         /// </para>
  65.         /// </devdoc>
  66.        
  67.         Truncated = 256,
  68.         ControlDataTruncated = 512,
  69.         Broadcast = 1024,
  70.         Multicast = 2048,
  71.        
  72.        
  73.         Partial = 32768
  74.        
  75.     }
  76.     // enum SocketFlags
  77.    
  78.     /*
  79. MSG_DONTROUTE
  80. Specifies that the data should not be subject to routing. A WinSock service
  81. provider may choose to ignore this flag;.
  82. MSG_OOB
  83. Send out-of-band data (stream style socket such as SOCK_STREAM only).
  84. MSG_PARTIAL
  85. Specifies that lpBuffers only contains a partial message. Note
  86. that the error code WSAEOPNOTSUPP will be returnedthis flag is ignored by
  87. transports which do not support partial message transmissions.
  88. MSG_INTERRUPT // not supported (Win16)
  89. Specifies that the function is being called in interrupt context.
  90. The service provider must not make any Windows systems calls. Note that
  91. this is applicable only to Win16 environments and only for protocols that
  92. have the XP1_INTERRUPT bit set in the PROTOCOL_INFO struct.
  93. */   
  94.    
  95.    
  96. }
  97. // namespace System.Net.Sockets

Developer Fusion