namespace Microsoft.Win32 { //SOMAXCONN定义 public static partial class NativeMethods { /// /// Maximum queue length specifiable by listen. /// public const int SOMAXCONN = 0x7FFFFFFF; } }