Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/nanoFramework.System.Net/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

////////////////////////////////////////////////////////////////
// update this whenever the native assembly signature changes //
[assembly: AssemblyNativeVersion("1.0.6.0")]
[assembly: AssemblyNativeVersion("1.0.7.0")]
////////////////////////////////////////////////////////////////

// Setting ComVisible to false makes the types in this assembly not visible
Expand Down
4 changes: 4 additions & 0 deletions source/nanoFramework.System.Net/Sockets/Socket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class Socket : IDisposable

private bool m_fBlocking = true;
private EndPoint m_localEndPoint = null;
private EndPoint _remoteEndPoint = null;

// timeout values are stored in uSecs since the Poll method requires it.
private int m_recvTimeout = System.Threading.Timeout.Infinite;
Expand Down Expand Up @@ -313,6 +314,9 @@ public void Connect(EndPoint remoteEP)
throw new ObjectDisposedException();
}

// store remote endpoint we are connecting to
_remoteEndPoint = remoteEP;

NativeSocket.connect(this, remoteEP.Serialize().m_Buffer, !m_fBlocking);

if (m_fBlocking)
Expand Down