VOOZH about

URL: https://www.nuget.org/packages/Vanara.PInvoke.Ws2_32/

⇱ NuGet Gallery | Vanara.PInvoke.Ws2_32 5.0.5




👁 Image
Vanara.PInvoke.Ws2_32 5.0.5

Prefix Reserved
dotnet add package Vanara.PInvoke.Ws2_32 --version 5.0.5
 
 
NuGet\Install-Package Vanara.PInvoke.Ws2_32 -Version 5.0.5
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Vanara.PInvoke.Ws2_32" Version="5.0.5" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Vanara.PInvoke.Ws2_32" Version="5.0.5" />
 
Directory.Packages.props
<PackageReference Include="Vanara.PInvoke.Ws2_32" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Vanara.PInvoke.Ws2_32 --version 5.0.5
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Vanara.PInvoke.Ws2_32, 5.0.5"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Vanara.PInvoke.Ws2_32@5.0.5
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Vanara.PInvoke.Ws2_32&version=5.0.5
 
Install as a Cake Addin
#tool nuget:?package=Vanara.PInvoke.Ws2_32&version=5.0.5
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

👁 Vanara

Vanara.PInvoke.Ws2_32 NuGet Package

👁 Version
👁 Build status

PInvoke API (methods, structures and constants) for WinSock and WinSock2 imported from Windows Ws2_32.dll.

What is Vanara?

Vanara is a community project that contains various .NET assemblies which have P/Invoke functions, interfaces, enums and structures from Windows libraries. Each assembly is associated with one or a few tightly related libraries.

Issues?

First check if it's already fixed by trying the MyGet build. If you're still running into problems, file an issue.

Included in Vanara.PInvoke.Ws2_32

Functions Enumerations Structures
__WSAFDIsSet<br>accept<br>AcceptEx<br>bind<br>closesocket<br>connect<br>FreeAddrInfoExW<br>FreeAddrInfoW<br>GetAcceptExSockaddrs<br>GetAddrInfoExCancel<br>GetAddrInfoExOverlappedResult<br>GetAddrInfoExW<br>GetAddrInfoW<br>gethostname<br>GetHostNameW<br>GetNameInfoW<br>getpeername<br>getprotobyname<br>getprotobynumber<br>getservbyname<br>getservbyport<br>getsockname<br>getsockopt<br>htonl<br>htons<br>inet_addr<br>inet_ntoa<br>inet_ntop<br>inet_pton<br>InetNtopW<br>InetPtonW<br>ioctlsocket<br>listen<br>ntohl<br>ntohs<br>ProcessSocketNotifications<br>recv<br>recvfrom<br>select<br>send<br>sendto<br>SetAddrInfoEx<br>setsockopt<br>shutdown<br>socket<br>TransmitFile<br>WPUCompleteOverlappedRequest<br>WSAAccept<br>WSAAddressToString<br>WSAAdvertiseProvider<br>WSAAsyncGetHostByAddr<br>WSAAsyncGetHostByName<br>WSAAsyncGetProtoByName<br>WSAAsyncGetProtoByNumber<br>WSAAsyncGetServByName<br>WSAAsyncGetServByPort<br>WSAAsyncSelect<br>WSACancelAsyncRequest<br>WSACleanup<br>WSACloseEvent<br>WSAConnect<br>WSAConnectByList<br>WSAConnectByName<br>WSACreateEvent<br>WSADuplicateSocket<br>WSAEnumNameSpaceProviders<br>WSAEnumNameSpaceProvidersEx<br>WSAEnumNetworkEvents<br>WSAEnumProtocols<br>WSAEventSelect<br>WSAGetLastError<br>WSAGetOverlappedResult<br>WSAGetQOSByName<br>WSAGetServiceClassInfo<br>WSAGetServiceClassNameByClassId<br>WSAHtonl<br>WSAHtons<br>WSAInstallServiceClass<br>WSAIoctl<br>WSAJoinLeaf<br>WSALookupServiceBegin<br>WSALookupServiceEnd<br>WSALookupServiceNext<br>WSANSPIoctl<br>WSANtohl<br>WSANtohs<br>WSAPoll<br>WSAProviderCompleteAsyncCall<br>WSAProviderConfigChange<br>WSARecv<br>WSARecvDisconnect<br>WSARecvEx<br>WSARecvFrom<br>WSARemoveServiceClass<br>WSAResetEvent<br>WSASend<br>WSASendDisconnect<br>WSASendMsg<br>WSASendTo<br>WSASetEvent<br>WSASetLastError<br>WSASetService<br>WSASocket<br>WSAStartup<br>WSAStringToAddress<br>WSAUnadvertiseProvider<br>WSAWaitForMultipleEvents<br>WSCDeinstallProvider<br>WSCDeinstallProvider32<br>WSCEnableNSProvider<br>WSCEnableNSProvider32<br>WSCEnumNameSpaceProviders32<br>WSCEnumNameSpaceProvidersEx32<br>WSCEnumProtocols<br>WSCEnumProtocols32<br>WSCGetApplicationCategory<br>WSCGetProviderInfo<br>WSCGetProviderInfo32<br>WSCGetProviderPath<br>WSCGetProviderPath32<br>WSCInstallNameSpace<br>WSCInstallNameSpace32<br>WSCInstallNameSpaceEx<br>WSCInstallNameSpaceEx32<br>WSCInstallProvider<br>WSCInstallProvider64_32<br>WSCInstallProviderAndChains64_32<br>WSCSetApplicationCategory<br>WSCSetProviderInfo<br>WSCSetProviderInfo32<br>WSCUnInstallNameSpace<br>WSCUnInstallNameSpace32<br>WSCUpdateProvider<br>WSCUpdateProvider32<br>WSCWriteNameSpaceOrder<br>WSCWriteNameSpaceOrder32<br>WSCWriteProviderOrder<br>WSCWriteProviderOrder32<br> CONTROL_CHANNEL_TRIGGER_STATUS<br>SOCKET_INFO_CONNECTION<br>SOCKET_SECURITY_PROTOCOL<br>SOCKET_SETTINGS<br>SOCKET_SETTINGS_IPSEC<br>SOCKET_USAGE_TYPE<br>TCPSTATE<br>TIMESTAMPING_FLAG<br>RIO_NOTIFICATION_COMPLETION_TYPE<br>TF<br>TP_ELEMENT<br>RIO_MSG<br>SERVICETYPE<br>ADDRESS_FAMILY<br>CF<br>GROUP<br>NetworkByteOrder<br>NS<br>PFL<br>SOCK<br>SOCK_NOTIFY_EVENT<br>SOCK_NOTIFY_OP<br>SOCK_NOTIFY_REGISTER_EVENT<br>SOCK_NOTIFY_TRIGGER<br>WSAECOMPARATOR<br>WSAESETSERVICEOP<br>XP1<br>SD<br>FD<br>JL<br>LUP<br>MsgFlags<br>PollFlags<br>ServiceInstallFlags<br>WSA_FLAG<br>WSACOMPLETIONTYPE<br>ADDRINFO_FLAGS<br>IPPROTO<br>NI<br>SCOPE_LEVEL<br>IPV6<br>MULTICAST_MODE_TYPE<br>WSC_PROVIDER_INFO_TYPE<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> ASSOCIATE_NAMERES_CONTEXT_INPUT<br>INET_PORT_RANGE<br>INET_PORT_RESERVATION_INSTANCE<br>INET_PORT_RESERVATION_TOKEN<br>REAL_TIME_NOTIFICATION_SETTING_INPUT<br>REAL_TIME_NOTIFICATION_SETTING_OUTPUT<br>SOCKET_PEER_TARGET_NAME<br>SOCKET_SECURITY_QUERY_INFO<br>SOCKET_SECURITY_QUERY_TEMPLATE<br>SOCKET_SECURITY_SETTINGS<br>SOCKET_SECURITY_SETTINGS_IPSEC<br>TCP_INFO_v0<br>TCP_INFO_v1<br>TCP_INITIAL_RTO_PARAMETERS<br>tcp_keepalive<br>TIMESTAMPING_CONFIG<br>TRANSPORT_SETTING_ID<br>RIO_EXTENSION_FUNCTION_TABLE<br>RIO_NOTIFICATION_COMPLETION<br>TRANSMIT_FILE_BUFFERS<br>TRANSMIT_PACKETS_ELEMENT<br>RIO_BUF<br>RIORESULT<br>FLOWSPEC<br>CSADDR_INFO<br>IN_ADDR<br>IN6_ADDR<br>LINGER<br>QOS<br>SOCK_NOTIFY_REGISTRATION<br>SOCKET<br>TIMEVAL<br>WSADATA<br>WSAPROTOCOL_INFO<br>WSAPROTOCOLCHAIN<br>PROTOENT<br>SERVENT<br>WSRESULT<br>fd_set<br>WSANETWORKEVENTS<br>WSANSCLASSINFO<br>WSAPOLLFD<br>WSAQUERYSET<br>WSAQUERYSET_MGD<br>WSASERVICECLASSINFO<br>ADDRINFOEX2W<br>ADDRINFOEXW<br>ADDRINFOW<br>SCOPE_ID<br>SOCKADDR_IN<br>SOCKADDR_STORAGE<br>SOCKET_ADDRESS<br>SOCKET_ADDRESS_LIST<br>SOCKET_PROCESSOR_AFFINITY<br>WSABUF<br>WSACMSGHDR<br>WSAMSG<br>GROUP_FILTER<br>IN_PKTINFO<br>IN6_PKTINFO<br>IP_MREQ<br>IP_MSFILTER<br>IPV6_MREQ<br>SOCKADDR_IN6<br>SOCKADDR_IN6_PAIR<br>SOCKADDR_IN6_PAIR_NATIVE<br>SOCKADDR_INET<br>AFPROTOCOLS<br>BLOB<br>NSPV2_ROUTINE<br>WSAEVENT<br>WSANAMESPACE_INFOEXW<br>WSANAMESPACE_INFOW<br>WSAOVERLAPPED<br>WSAPROTOCOL_INFOW<br>WSAQUERYSET2W<br>WSAVERSION<br>UNION<br>EVENT<br>IOCP<br>WINDOWMESSAGE<br>EVENT<br>APC<br>PORT<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
Product Versions Compatible and additional computed target framework versions.
.NET net5.0 net5.0 is compatible.  net5.0-windows net5.0-windows was computed.  net6.0 net6.0 is compatible.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 is compatible.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 was computed.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net8.0-windows7.0 net8.0-windows7.0 is compatible.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net9.0-windows7.0 net9.0-windows7.0 is compatible.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed.  net10.0-windows7.0 net10.0-windows7.0 is compatible. 
.NET Core netcoreapp2.0 netcoreapp2.0 was computed.  netcoreapp2.1 netcoreapp2.1 was computed.  netcoreapp2.2 netcoreapp2.2 was computed.  netcoreapp3.0 netcoreapp3.0 was computed.  netcoreapp3.1 netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 netstandard2.0 is compatible.  netstandard2.1 netstandard2.1 is compatible. 
.NET Framework net461 net461 was computed.  net462 net462 was computed.  net463 net463 was computed.  net47 net47 was computed.  net471 net471 was computed.  net472 net472 was computed.  net48 net48 is compatible.  net481 net481 was computed. 
MonoAndroid monoandroid monoandroid was computed. 
MonoMac monomac monomac was computed. 
MonoTouch monotouch monotouch was computed. 
Tizen tizen40 tizen40 was computed.  tizen60 tizen60 was computed. 
Xamarin.iOS xamarinios xamarinios was computed. 
Xamarin.Mac xamarinmac xamarinmac was computed. 
Xamarin.TVOS xamarintvos xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (12)

Showing the top 5 NuGet packages that depend on Vanara.PInvoke.Ws2_32:

Package Downloads
Vanara.PInvoke.IpHlpApi

PInvoke API (methods, structures and constants) imported from Windows IpHlpApi.dll.

Vanara.PInvoke.NetApi32

PInvoke API (methods, structures and constants) imported from Windows NetApi32.dll.

Vanara.Library

The full set of packages associated with the Vanara PInvoke Libraries.

Vanara.PInvoke.DnsApi

PInvoke API (methods, structures and constants imported from Windows DnsApi.dll.

Vanara.PInvoke.Drt

PInvoke API (methods, structures and constants) imported from Windows Drt.dll for the Distributed Routing Table (DRT) API.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.0.5 2,363 5/16/2026
5.0.4 2,549 4/15/2026
5.0.3 905 4/9/2026
5.0.1 2,227 3/11/2026
5.0.0 3,613 1/12/2026
4.2.1 19,755 9/9/2025
4.2.0 1,736 8/25/2025
4.1.6 18,125 6/20/2025
4.1.5 705 6/20/2025
4.1.4 1,619 6/7/2025
4.1.3 9,295 4/24/2025
4.1.2 1,041 4/16/2025
4.1.1 5,271 3/7/2025
4.1.0 979 3/7/2025
4.0.6 1,206 2/24/2025
4.0.5 1,242 2/8/2025
4.0.4 12,220 9/13/2024
4.0.3 1,350 8/5/2024
4.0.2 1,247 6/24/2024
4.0.1 8,529 4/30/2024
Loading failed

Currently implements:

Functions
accept AcceptEx bind closesocket connect FreeAddrInfoExW FreeAddrInfoW GetAcceptExSockaddrs GetAddrInfoExCancel GetAddrInfoExOverlappedResult GetAddrInfoExW GetAddrInfoW gethostname GetHostNameW GetNameInfoW getpeername getprotobyname getprotobynumber getservbyname getservbyport getsockname getsockopt htonl htons InetNtopW InetPtonW inet_addr inet_ntoa inet_ntop inet_pton ioctlsocket listen ntohl ntohs ProcessSocketNotifications recv recvfrom select send sendto SetAddrInfoEx setsockopt shutdown socket TransmitFile WPUCompleteOverlappedRequest WSAAccept WSAAddressToString WSAAdvertiseProvider WSAAsyncGetHostByAddr WSAAsyncGetHostByName WSAAsyncGetProtoByName WSAAsyncGetProtoByNumber WSAAsyncGetServByName WSAAsyncGetServByPort WSAAsyncSelect WSACancelAsyncRequest WSACleanup WSACloseEvent WSAConnect WSAConnectByList WSAConnectByName WSACreateEvent WSADuplicateSocket WSAEnumNameSpaceProviders WSAEnumNameSpaceProvidersEx WSAEnumNetworkEvents WSAEnumProtocols WSAEventSelect WSAGetLastError WSAGetOverlappedResult WSAGetQOSByName WSAGetServiceClassInfo WSAGetServiceClassNameByClassId WSAHtonl WSAHtons WSAInstallServiceClass WSAIoctl WSAJoinLeaf WSALookupServiceBegin WSALookupServiceEnd WSALookupServiceNext WSANSPIoctl WSANtohl WSANtohs WSAPoll WSAProviderCompleteAsyncCall WSAProviderConfigChange WSARecv WSARecvDisconnect WSARecvEx WSARecvFrom WSARemoveServiceClass WSAResetEvent WSASend WSASendDisconnect WSASendMsg WSASendTo WSASetEvent WSASetLastError WSASetService WSASocket WSAStartup WSAStringToAddress WSAUnadvertiseProvider WSAWaitForMultipleEvents WSCDeinstallProvider WSCDeinstallProvider32 WSCEnableNSProvider WSCEnableNSProvider32 WSCEnumNameSpaceProviders32 WSCEnumNameSpaceProvidersEx32 WSCEnumProtocols WSCEnumProtocols32 WSCGetApplicationCategory WSCGetProviderInfo WSCGetProviderInfo32 WSCGetProviderPath WSCGetProviderPath32 WSCInstallNameSpace WSCInstallNameSpace32 WSCInstallNameSpaceEx WSCInstallNameSpaceEx32 WSCInstallProvider WSCInstallProvider64_32 WSCInstallProviderAndChains64_32 WSCSetApplicationCategory WSCSetProviderInfo WSCSetProviderInfo32 WSCUnInstallNameSpace WSCUnInstallNameSpace32 WSCUpdateProvider WSCUpdateProvider32 WSCWriteNameSpaceOrder WSCWriteNameSpaceOrder32 WSCWriteProviderOrder WSCWriteProviderOrder32 __WSAFDIsSet

Structures
ADDRINFOEX2W ADDRINFOEXW ADDRINFOW AFPROTOCOLS APC ASSOCIATE_NAMERES_CONTEXT_INPUT BLOB CSADDR_INFO EVENT EVENT fd_set FLOWSPEC GROUP_FILTER IN6_ADDR IN6_PKTINFO INET_PORT_RANGE INET_PORT_RESERVATION_INSTANCE INET_PORT_RESERVATION_TOKEN IN_ADDR IN_PKTINFO IOCP IPV6_MREQ IP_MREQ IP_MSFILTER LINGER NSPV2_ROUTINE PORT PROTOENT QOS REAL_TIME_NOTIFICATION_SETTING_INPUT REAL_TIME_NOTIFICATION_SETTING_OUTPUT RIORESULT RIO_BUF RIO_EXTENSION_FUNCTION_TABLE RIO_NOTIFICATION_COMPLETION SCOPE_ID SERVENT SOCKADDR_IN SOCKADDR_IN6 SOCKADDR_IN6_PAIR SOCKADDR_IN6_PAIR_NATIVE SOCKADDR_INET SOCKADDR_STORAGE SOCKET SOCKET_ADDRESS SOCKET_ADDRESS_LIST SOCKET_PEER_TARGET_NAME SOCKET_PROCESSOR_AFFINITY SOCKET_SECURITY_QUERY_INFO SOCKET_SECURITY_QUERY_TEMPLATE SOCKET_SECURITY_SETTINGS SOCKET_SECURITY_SETTINGS_IPSEC SOCK_NOTIFY_REGISTRATION TCP_INFO_v0 TCP_INFO_v1 TCP_INITIAL_RTO_PARAMETERS tcp_keepalive TIMESTAMPING_CONFIG TIMEVAL TRANSMIT_FILE_BUFFERS TRANSMIT_PACKETS_ELEMENT TRANSPORT_SETTING_ID UNION WINDOWMESSAGE WSABUF WSACMSGHDR WSADATA WSAEVENT WSAMSG WSANAMESPACE_INFOEXW WSANAMESPACE_INFOW WSANETWORKEVENTS WSANSCLASSINFO WSAOVERLAPPED WSAPOLLFD WSAPROTOCOLCHAIN WSAPROTOCOL_INFO WSAPROTOCOL_INFOW WSAQUERYSET WSAQUERYSET2W WSAQUERYSET_MGD WSASERVICECLASSINFO WSAVERSION WSRESULT