1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
4 
5 using System;
6 using System.Runtime.InteropServices;
7 
8 internal static partial class Interop
9 {
10     internal static partial class Winsock
11     {
12         [DllImport(Interop.Libraries.Ws2_32, SetLastError = true)]
select( [In] int ignoredParameter, [In, Out] IntPtr[] readfds, [In, Out] IntPtr[] writefds, [In, Out] IntPtr[] exceptfds, [In] ref TimeValue timeout)13         internal static extern int select(
14             [In] int ignoredParameter,
15             [In, Out] IntPtr[] readfds,
16             [In, Out] IntPtr[] writefds,
17             [In, Out] IntPtr[] exceptfds,
18             [In] ref TimeValue timeout);
19 
20         [DllImport(Interop.Libraries.Ws2_32, SetLastError = true)]
select( [In] int ignoredParameter, [In, Out] IntPtr[] readfds, [In, Out] IntPtr[] writefds, [In, Out] IntPtr[] exceptfds, [In] IntPtr nullTimeout)21         internal static extern int select(
22             [In] int ignoredParameter,
23             [In, Out] IntPtr[] readfds,
24             [In, Out] IntPtr[] writefds,
25             [In, Out] IntPtr[] exceptfds,
26             [In] IntPtr nullTimeout);
27     }
28 }
29