You've already forked linux-packaging-mono
Imported Upstream version 4.2.0.179
Former-commit-id: 4610231f55806d2a05ed69e5ff3faa7336cc1479
This commit is contained in:
committed by
Jo Shields
parent
aa7da660d6
commit
c042cd0c52
@ -365,7 +365,9 @@ namespace System.Net.NetworkInformation {
|
||||
if (fd.ToInt64 () == -1)
|
||||
return false;
|
||||
|
||||
nl_sock = new Socket (0, SocketType.Raw, ProtocolType.Udp, fd);
|
||||
var safeHandle = new SafeSocketHandle (fd, true);
|
||||
|
||||
nl_sock = new Socket (0, SocketType.Raw, ProtocolType.Udp, safeHandle);
|
||||
nl_args = new SocketAsyncEventArgs ();
|
||||
nl_args.SetBuffer (new byte [8192], 0, 8192);
|
||||
nl_args.Completed += OnDataAvailable;
|
||||
@ -402,13 +404,15 @@ namespace System.Net.NetworkInformation {
|
||||
void OnAvailabilityChanged (object unused)
|
||||
{
|
||||
NetworkAvailabilityChangedEventHandler d = AvailabilityChanged;
|
||||
d (null, new NetworkAvailabilityEventArgs (GetAvailability ()));
|
||||
if (d != null)
|
||||
d (null, new NetworkAvailabilityEventArgs (GetAvailability ()));
|
||||
}
|
||||
|
||||
void OnAddressChanged (object unused)
|
||||
{
|
||||
NetworkAddressChangedEventHandler d = AddressChanged;
|
||||
d (null, EventArgs.Empty);
|
||||
if (d != null)
|
||||
d (null, EventArgs.Empty);
|
||||
}
|
||||
|
||||
void OnEventDue (object unused)
|
||||
|
Reference in New Issue
Block a user