1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-16 07:06:30 +09:00

Added code to rebind socket after a NetConnected socket error; thanks Rhee

This commit is contained in:
lidgren
2014-10-08 12:08:43 +00:00
parent f476f523ac
commit e206ba210e
5 changed files with 78 additions and 44 deletions

View File

@@ -28,7 +28,7 @@ namespace Lidgren.Network
[CLSCompliant(false)]
public static ulong GetUInt64()
{
#if !__ANDROID__ && !IOS && !UNITY_WEBPLAYER
#if !__ANDROID__ && !IOS && !UNITY_WEBPLAYER && !UNITY_ANDROID && !UNITY_IPHONE
ulong seed = (ulong)System.Diagnostics.Stopwatch.GetTimestamp();
seed ^= (ulong)Environment.WorkingSet;
ulong s2 = (ulong)Interlocked.Increment(ref m_seedIncrement);