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

281 Commits

Author SHA1 Message Date
Michael Lidgren
5879fb641e Rev397-400 on google code; fixes to recycling and minor tweak to heartbeat calling when a disconnection occurs 2015-01-25 16:05:49 +01:00
Michael Lidgren
4b7b53b36d added mutex for access to m_handshake everywhere except count requests 2015-01-21 08:52:28 +01:00
Michael Lidgren
d57f7045fe m_needFlushSendQueue added to prevent traversing sender channels each heartbeat 2015-01-20 17:39:03 +01:00
lidgren
a09ed9b585 Mistakenly change from float to double in NetIncomingMessageType.ConnectionLatencyUpdated reverted 2015-01-18 17:15:20 +00:00
lidgren
999e113d65 Changed internal representation of time in a bunch of places from float to double 2015-01-17 16:35:01 +00:00
lidgren
c15e4cb2c8 Message/storage recycling capped to NetConfiguration.RecycledCacheMaxCount number of arrays/messages 2015-01-11 17:56:06 +00:00
lidgren
984e70fd52 connection statistics bytes and packet counters changed from 32 to 64 bit long integers 2014-12-24 14:34:54 +00:00
lidgren
e3d3f1ec1e Removed dead code 2014-12-03 00:02:06 +00:00
lidgren
9f6d3e79fd Delaying local Disconnect until next heartbeat 2014-11-20 10:14:59 +00:00
lidgren
740cc2ec1b Recycle outgoing ping and mtu messages 2014-11-05 09:20:26 +00:00
lidgren
6533e272e3 Emit debug message for punches sent as part of Nat introduction 2014-11-04 09:04:38 +00:00
lidgren
601666d9fb Fix to rebind same port as previously bound 2014-10-11 08:25:21 +00:00
lidgren
869ccb7bcb Added missing file NetCryptoProviderBase.cs 2014-10-11 08:22:49 +00:00
lidgren
2b9135b312 Don't try to parse packets identified as UPnP responses even when UPnP response parsing fails 2014-10-10 15:55:55 +00:00
lidgren
0d2955637d Added NetConnection.CanSendImmediately() to determine if the sliding window is full
Recycle outgoing dropped messages
Encryption using CryptoProviders refactored 
Added NetUnreliableSizeBehaviour to configure behaviour for unreliable messages above MTU
Debug stats show number of received fragments
2014-10-10 15:25:54 +00:00
lidgren
e9b6434831 Removed dead code (SenderChannelBase.cs) 2014-10-10 08:05:30 +00:00
lidgren
d38143cca7 Encryption fixed 2014-10-10 07:35:17 +00:00
lidgren
e206ba210e Added code to rebind socket after a NetConnected socket error; thanks Rhee 2014-10-08 12:08:43 +00:00
lidgren
a1abb3fa53 Fix for first unreliable sequenced message automatically being dropped 2014-09-06 09:23:45 +00:00
lidgren
49e54f3d6a Argument null check in Recycle(byte[]) 2014-08-29 18:51:55 +00:00
lidgren
7440f6da3c XML comments provided for random classes to stomp out last warnings 2014-08-25 07:42:43 +00:00
lidgren
f2aa4b4ce2 Warnings and minor inconsistencies fixed 2014-08-25 07:34:56 +00:00
lidgren
eb9dbdda40 Warnings fixed 2014-08-25 06:51:24 +00:00
lidgren
82fcede26c Fixed compile error in NetRandomSeed for non-full .net implementations 2014-08-13 09:18:42 +00:00
lidgren
009c947f94 Unity defines for read/write reflection 2014-08-13 06:50:12 +00:00
lidgren
715746eed3 Removed unnecessary allocation 2014-08-12 20:44:39 +00:00
lidgren
c2f8346ca3 Removed superflous call to EnsureBufferSize 2014-08-11 05:38:22 +00:00
lidgren
092bd4d536 Fix for possible race condition resulting in duplicate message recycling
Fix for DoS vulnerability with incoming acks
2014-08-10 18:46:26 +00:00
lidgren
54ff6f1c37 Changed target framework to 4.5.1 for all projects
Changed some minor things after running .net portability analyzer
Fixed a bunch of warnings (mostly CLS compliance)
2014-08-10 09:27:36 +00:00
lidgren
5f5cd5ecf6 NetRandom updated; four implementations provided: Multiply with carry, XorShift, Mersenne Twister and RNGCryptoServiceProvider based 2014-08-07 22:53:24 +00:00
lidgren
fd3893afcb Replaced old xor shift random code with Mersenne Twister and updated the way the seed is generated 2014-08-04 22:48:53 +00:00
lidgren
56ddf1efed Null check for setter on ReadAllProperties 2014-08-03 14:26:14 +00:00
lidgren
4bfb24da96 Added some UNITY defines; fix by aeronaut84. Untested. 2014-08-02 18:01:30 +00:00
lidgren
57eba64f6f Premature checkin problem fixed 2014-07-31 19:03:55 +00:00
lidgren
d2ae3cf41d BREAKING CHANGE: NatIntroductionSuccess is now DISABLED by default; you must enable it using EnableMessageType
Added GarbageThrowerSample - a small library sample that sends random and semi-random data to detect problems
Made lots of changes that caused exceptions when malformed data was received
2014-07-31 14:55:50 +00:00
lidgren
04593ef00f Added NetPeer.ThrowOrLog
Changed a bunch of exceptions for consistency and safety
Enabled AutoExpandMTU for SpeedSample
2014-07-31 13:16:09 +00:00
lidgren
85a3b28bbf Slight modifications to default resend values
Don't respond to ExpandMTUSuccess if AutoExpandMTU is disabled
Locking handshakes collection in Deny() for consistency
2014-07-31 12:20:53 +00:00
lidgren
64290a229c Fix for executing disconnects due to timeout 2014-06-17 20:27:15 +00:00
lidgren
1de702e5ff Fix for unreliable sequenced channels. If you sent too many messages rapidly that get dropped along the wire messages would stop being enqueued. 2014-05-31 17:05:42 +00:00
lidgren
fbddaf8962 NetQueue.TryDequeue failure will now only throw in DEBUG
WaitMessage will now create a wait event object if needed
2014-05-21 07:18:08 +00:00
lidgren
865a7600f2 Handle ConnectResponse despite connection being in place; to handle dropped handshake messages 2014-02-22 09:52:40 +00:00
lidgren
ffc5239b4c Fixed duplicate detection for unreliable sequenced data; thanks deadpolygon for fix 2014-02-07 08:18:02 +00:00
lidgren
d105b39c95 Added WriteAt() methods and fixed unnecessarily large allocation 2014-01-25 17:51:27 +00:00
lidgren
28ca421b63 Added option to specify synchronizationcontext when registering callback 2014-01-22 13:59:39 +00:00
lidgren
aa2ce92148 ReadAllFields and ReadAllProperties now throws ArgumentNullException 2014-01-13 08:06:37 +00:00
lidgren
faebe22254 Added NetBuffer.WriteAt() 2014-01-13 08:02:34 +00:00
lidgren
7555b6958e Use Dns.GetHostAddresses instead of Dns.GetHostEntry 2013-05-31 18:33:33 +00:00
lidgren
f32e40d048 Fixed AcceptIncomingConnections = false actualling having an effect 2013-05-07 07:37:27 +00:00
lidgren
c5ca1879a0 replaced regular critical section lock with ReaderWriterLockSlim 2013-05-01 13:31:23 +00:00
lidgren
772dceefcb GetNetworkInterface() now verified there's ipv4 addresses available 2013-04-08 07:40:26 +00:00