sharpcaster.SocketsForPCL 2.0.4

.NET Framework 4.5

Requires NuGet 2.8.1 or higher.

dotnet add package sharpcaster.SocketsForPCL --version 2.0.4
NuGet\Install-Package sharpcaster.SocketsForPCL -Version 2.0.4
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="sharpcaster.SocketsForPCL" Version="2.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add sharpcaster.SocketsForPCL --version 2.0.4
#r "nuget: sharpcaster.SocketsForPCL, 2.0.4"
#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 sharpcaster.SocketsForPCL as a Cake Addin
#addin nuget:?package=sharpcaster.SocketsForPCL&version=2.0.4

// Install sharpcaster.SocketsForPCL as a Cake Tool
#tool nuget:?package=sharpcaster.SocketsForPCL&version=2.0.4

Cross-platform socket API for Xamarin iOS/Android/Forms, Xamarin.Mac, Windows Phone 8/8.1, Windows Store, UWP and Windows Desktop. Includes support for TCP and UDP listeners and clients, as well as UDP multicast.

Product Versions
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid10
Universal Windows Platform uap uap10.0
Windows Phone wp8 wp81 wpa81
Windows Store win8
Xamarin.iOS xamarinios10
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on sharpcaster.SocketsForPCL:

Repository Stars
Chromecast C# SDK for .net standard 2.0
Version Downloads Last updated
2.0.4 13,129 9/30/2016

2.0.4 (2016-09-30)

- Released nuget package and fixed typo

2.0.3 (2016-09-27)
- Added flag to ignore SSL errors
2.0.2 (2016-06-30)

Known Issues:

- A `SocketException` class has been added, allowing socket-related exceptions to be caught from PCL code. In this release, this works for WinRT/UWP platforms only.


- Support for the iOS "Classic" API, MacOS "Classic" and MonoMac (open source) platforms has been dropped.


- It is now possible to retrieve the `ICommsInterface` that a `TcpSocketClient` is connected via. Thanks @fubar-coder
- Auto-properties have been replaced with proper events across all classes. Thanks @Waty
- `TcpSocketClient`'s `ConnectAsync` method optionally takes a `CancellationToken` to support client-invoked cancellation and scenarios like timeout. Thanks @SparkStream
- You may now specify a service name rather than port when connecting with a `TcpSocketClient`. Thanks @SparkStream
- For those that need it, you can access the underlying .NET or WinRT/UWP socket instance from native (non-PCL) projects. Thanks @SparkStream
- `UdpSocketClient` can now receive response packets. This simplifies scenarios where you don't need to listen for new packets, but do need to receive response packets. Thanks @SatoshiARA
- All the Udp socket classes now include a `Send-` overload that allows you to specify the number of bytes to be read from the input. This can avoid the need to duplicate a buffer when working with streams. Thanks @jasells


- Fixed `InvalidCastException` being thrown by `TcpSocketListener.Dispose()`. Thanks @Waty
- Fix for a rare issue where the Udp classes could throw an exception after receiving an ICMP unreachable packet in certain cases


- sockets-for-pcl can now also be installed via the Xamarin Component Store. Thanks @mattleibow
- special thanks to @vbisbest for helping work through issues in the prereleases