Vanara.PInvoke.Ws2_32 3.4.9

.NET 5.0 .NET Core 3.1 .NET Standard 2.0 .NET Framework 4.5
NuGet\Install-Package Vanara.PInvoke.Ws2_32 -Version 3.4.9
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.
dotnet add package Vanara.PInvoke.Ws2_32 --version 3.4.9
<PackageReference Include="Vanara.PInvoke.Ws2_32" Version="3.4.9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Vanara.PInvoke.Ws2_32 --version 3.4.9
#r "nuget: Vanara.PInvoke.Ws2_32, 3.4.9"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Vanara.PInvoke.Ws2_32 as a Cake Addin
#addin nuget:?package=Vanara.PInvoke.Ws2_32&version=3.4.9

// Install Vanara.PInvoke.Ws2_32 as a Cake Tool
#tool nuget:?package=Vanara.PInvoke.Ws2_32&version=3.4.9

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 AppVeyor build. If you're still running into problems, file an issue.

Included in Vanara.PInvoke.Ws2_32

Functions Enumerations Structures
__WSAFDIsSet accept bind closesocket connect FreeAddrInfoExW FreeAddrInfoW GetAddrInfoExCancel GetAddrInfoExOverlappedResult GetAddrInfoExW GetAddrInfoW gethostname GetHostNameW GetNameInfoW getpeername getprotobyname getprotobynumber getservbyname getservbyport getsockname getsockopt htonl htons inet_addr inet_ntoa inet_ntop inet_pton InetNtopW InetPtonW ioctlsocket listen ntohl ntohs ProcessSocketNotifications recv recvfrom select send sendto SetAddrInfoEx setsockopt shutdown socket 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 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 CONTROL_CHANNEL_TRIGGER_STATUS SOCKET_INFO_CONNECTION SOCKET_SECURITY_PROTOCOL SOCKET_SETTINGS SOCKET_SETTINGS_IPSEC SOCKET_USAGE_TYPE TCPSTATE TIMESTAMPING_FLAG SERVICETYPE ADDRESS_FAMILY CF GROUP NetworkByteOrder NS PFL SOCK SOCK_NOTIFY_EVENT SOCK_NOTIFY_OP SOCK_NOTIFY_REGISTER_EVENT SOCK_NOTIFY_TRIGGER WSAECOMPARATOR WSAESETSERVICEOP XP1 SD FD JL LUP MsgFlags PollFlags ServiceInstallFlags WSA_FLAG ADDRINFO_FLAGS IPPROTO NI SCOPE_LEVEL MULTICAST_MODE_TYPE WSC_PROVIDER_INFO_TYPE ASSOCIATE_NAMERES_CONTEXT_INPUT INET_PORT_RANGE INET_PORT_RESERVATION_INSTANCE INET_PORT_RESERVATION_TOKEN REAL_TIME_NOTIFICATION_SETTING_INPUT REAL_TIME_NOTIFICATION_SETTING_OUTPUT SOCKET_PEER_TARGET_NAME SOCKET_SECURITY_QUERY_INFO SOCKET_SECURITY_QUERY_TEMPLATE SOCKET_SECURITY_SETTINGS SOCKET_SECURITY_SETTINGS_IPSEC TCP_INFO_v0 TCP_INFO_v1 TCP_INITIAL_RTO_PARAMETERS tcp_keepalive TIMESTAMPING_CONFIG TRANSPORT_SETTING_ID FLOWSPEC CSADDR_INFO IN_ADDR IN6_ADDR LINGER QOS SOCK_NOTIFY_REGISTRATION SOCKET TIMEVAL WSADATA WSAPROTOCOL_INFO WSAPROTOCOLCHAIN PROTOENT SERVENT WSRESULT fd_set WSANETWORKEVENTS WSANSCLASSINFO WSAPOLLFD WSAQUERYSET WSASERVICECLASSINFO ADDRINFOEX2W ADDRINFOEXW ADDRINFOW SCOPE_ID SOCKADDR_IN SOCKADDR_STORAGE SOCKET_ADDRESS SOCKET_ADDRESS_LIST SOCKET_PROCESSOR_AFFINITY WSABUF WSACMSGHDR WSAMSG GROUP_FILTER IN_PKTINFO IN6_PKTINFO IP_MREQ IP_MSFILTER IPV6_MREQ SOCKADDR_IN6 SOCKADDR_IN6_PAIR SOCKADDR_IN6_PAIR_NATIVE SOCKADDR_INET AFPROTOCOLS BLOB NSPV2_ROUTINE WSAEVENT WSANAMESPACE_INFOEXW WSANAMESPACE_INFOW WSAOVERLAPPED WSAPROTOCOL_INFOW WSAQUERYSET2W WSAVERSION
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (11)

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

Package Downloads
Vanara.PInvoke.IpHlpApi The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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

Vanara.PInvoke.NetApi32 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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

Vanara.Library The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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

Vanara.PInvoke.DnsApi The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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

Vanara.PInvoke.P2P The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

PInvoke API (methods, structures and constants) imported from Windows P2P.dll for Peer-to-Peer API.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Vanara.PInvoke.Ws2_32:

Repository Stars
jexuswebserver/JexusManager
Jexus Manager http://jexusmanager.com
Version Downloads Last updated
3.4.9 0 10/3/2022
3.4.8 199 9/16/2022
3.4.7 291 9/3/2022
3.4.6 398 8/7/2022
3.4.5 691 7/17/2022
3.4.4 527 7/5/2022
3.4.3 460 6/14/2022
3.4.2 685 5/13/2022
3.4.1 514 5/5/2022
3.4.0 1,306 3/14/2022
3.3.15 4,500 12/27/2021
3.3.14 2,708 10/26/2021
3.3.13 1,094 9/30/2021
3.3.12 1,428 8/30/2021
3.3.11 2,876 7/22/2021
3.3.10 2,490 6/4/2021
3.3.9 1,496 5/7/2021
3.3.8 2,372 4/7/2021
3.3.7 1,868 3/24/2021
3.3.6 1,298 3/19/2021
3.3.5 1,607 3/1/2021
3.3.4 1,295 2/11/2021
3.3.3 744 2/3/2021
3.3.2 1,020 1/21/2021
3.3.1 818 1/20/2021
3.3.0 1,643 11/20/2020
3.2.21 807 11/13/2020
3.2.20 3,755 11/8/2020
3.2.19 4,722 10/23/2020
3.2.18 867 10/21/2020
3.2.17 2,615 9/20/2020
3.2.16 955 9/7/2020
3.2.15 878 8/30/2020
3.2.14 827 8/20/2020
3.2.13 838 7/27/2020
3.2.12 769 7/13/2020
3.2.11 830 6/28/2020
3.2.10 1,863 6/14/2020
3.2.9 821 6/3/2020
3.2.7 1,217 5/4/2020
3.2.6 854 4/21/2020
3.2.5 822 4/15/2020
3.2.4 965 4/12/2020
3.2.3 790 4/1/2020
3.2.2 731 3/24/2020
3.2.1 738 3/17/2020
3.2.0 937 2/27/2020
3.1.9 848 1/17/2020
3.1.8 766 1/13/2020
3.1.7 791 1/6/2020
3.1.6 797 12/12/2019
3.1.5 905 11/26/2019
3.1.4 768 11/25/2019
3.1.3 845 11/8/2019
3.1.2 751 11/4/2019
3.1.1 1,070 10/17/2019
3.1.0 735 10/3/2019
3.0.1 852 9/20/2019
3.0.0 833 8/27/2019
2.3.11 1,008 6/9/2019
2.3.10 780 6/5/2019
2.3.9 780 5/26/2019
2.3.8 755 5/13/2019
2.3.7 1,204 4/24/2019
2.3.6 769 4/17/2019
2.3.5 752 4/10/2019
2.3.4 830 3/9/2019
2.3.3 747 3/8/2019
2.3.2 789 2/28/2019
2.3.1 732 2/25/2019
2.3.0 770 2/22/2019
2.2.1 828 2/12/2019
2.2.0 839 2/1/2019
2.1.2 1,042 1/14/2019
2.1.0 1,021 12/15/2018
2.0.1 876 12/7/2018
2.0.0 856 11/28/2018

Currently implements:

Functions
accept bind closesocket connect FreeAddrInfoExW FreeAddrInfoW 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 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 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 ASSOCIATE_NAMERES_CONTEXT_INPUT BLOB CSADDR_INFO fd_set FLOWSPEC GROUP_FILTER IN6_ADDR IN6_PKTINFO INET_PORT_RANGE INET_PORT_RESERVATION_INSTANCE INET_PORT_RESERVATION_TOKEN IN_ADDR IN_PKTINFO IPV6_MREQ IP_MREQ IP_MSFILTER LINGER NSPV2_ROUTINE PROTOENT QOS REAL_TIME_NOTIFICATION_SETTING_INPUT REAL_TIME_NOTIFICATION_SETTING_OUTPUT 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 TRANSPORT_SETTING_ID WSABUF WSACMSGHDR WSADATA WSAEVENT WSAMSG WSANAMESPACE_INFOEXW WSANAMESPACE_INFOW WSANETWORKEVENTS WSANSCLASSINFO WSAOVERLAPPED WSAPOLLFD WSAPROTOCOLCHAIN WSAPROTOCOL_INFO WSAPROTOCOL_INFOW WSAQUERYSET WSAQUERYSET2W WSASERVICECLASSINFO WSAVERSION WSRESULT