This changelog refers to nuget package releases.
Features:
TcpSocketClient
andTcpSocketListener
now supports setting of the buffer size used when sending data. If unset, this defaults to zero (unbuffered). This also addresses an inconsistency in default buffer sizes between .NET platforms and WinRT platforms. Thanks @xen2TcpSocketListener
now supports os-based/ephemeral port selection. When passing0
to theport
parameter ofStartListeningAsync
, the selection of bound port is deferred to the operating system. You can determine what port was bound by checking theLocalPort
property.
Bugfixes:
- Fixed incorrect assembly version for WP8.
Features:
- Support for MonoMac, Xamarin.Mac Classic and Xamarin.Mac Unified. Thanks @NewtonARA.
- Extension method
GetStream
added toITcpSocketClient
, easing migration from .NET projects. Thanks @danielcweber.
Other:
- sockets-for-pcl now comes with LINQPad samples! When you add the package to a LINQPad query for the first time, a set of samples will be added to your Samples tab, demonstrating typical usage.
- Will be trying Real Hard to do SemVer properly from now on.
Bugfixes:
- Fixed 'A method was called at an unexpected time' exception when that occured when disconnecting a
UdpSocketMulticastClient
on WinRT. Thanks @aghajani for discovering.
Other:
- Removed unneccessary
async
modifiers andawait
calls.
Features:
UdpSocketReceiver
can now be bound to a port chosen by the operating system. Pass0
to theport
argument ofStartListeningAsync
.
Bugfixes:
- Calling
Dispose
on a boundUdpSocketReceiver
orUdpSocketMulticastClient
now cancels the internal message reading loop.
Bugfixes:
- Fixed a
NullReferenceException
that could occur inCommsInterface.GetAllInterfacesAsync
if an interface had no IPv4 unicast address.
Features:
TcpSocketClient
supports TLS connections via optional parameter onConnectAsync
. Thanks @galvesribeiro.
Bugfixes:
- The backing
UdpClient
instances for the .NET UdpSocket* classes now have theEnableBroadcast
property set to true. This should preventAccess Denied
exceptions from occuring when attempting to send data to a broadcast address. - Fixed an
ObjectDisposedException
that would occur whenSendToAsync
was called a second time on aUdpSocketReceiver
if it had not yet been bound using 'StartListeningAsync`.
Other:
- Fixed an error in the .nuspec that resulted in
Sockets.Plugin.Abstractions
not being available under Windows Desktop. Whoops .
Features:
- Added
CommsInterface
class that abstracts over native network interface representations. UseGetAllInterfacesAsync
to retrieve the available interfaces. - Added optional parameter to listen methods that allows a specific
CommsInterface
to be bound. Ignored on WP8.0.
Other:
- Now with
ERR DIV BY ZERO
% more SemVer.
Bugfixes:
- Fixed a
NullReferenceException
in the .NET abstraction that would occur if aUdpSocketReceiver
'sSendToAsync
method was called beforeStartListeningAsync
.
First published to NuGet.