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

263 Commits

Author SHA1 Message Date
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
lidgren
900e280481 Fixed SendUnconnectedToSelf 2013-03-26 18:13:31 +00:00
lidgren
14f20ace0e FxCop issues fixed; dead code removed 2013-02-24 13:40:30 +00:00
lidgren
84f892c1f0 removed dead code 2013-02-24 12:30:29 +00:00
lidgren
c658d9c09e don't write m_messageType in ToString for unsent NetOutgoingMessage 2013-02-14 12:15:58 +00:00
lidgren
8ff63466d0 Removed dead code, thanks to fantix.king 2013-01-18 19:24:14 +00:00
lidgren
e685d2457c Patch by eliseegw to make resending more robust 2013-01-18 19:18:31 +00:00
lidgren
f914c772d1 WriteByte() fixed 2012-12-18 08:58:44 +00:00
lidgren
5798c84406 - Ugh, got halfcreated file in last checkin; reverted 2012-12-18 08:45:51 +00:00
lidgren
bf2987b168 Fixed m_connectionLookup was not cleared on shutdown 2012-12-18 08:30:08 +00:00
lidgren
44971f0afc Modified UPnP response handling 2012-11-15 08:29:31 +00:00
lidgren
b6d2111380 Release build fixed for NetPeerSettingsWindow
ManyClients project excluded missing app.config file
Reduced number of calls to NetTime.Now when receiving multiple messages
Moved magic numbers to constants in NetConnection
2012-11-05 13:39:57 +00:00
lidgren
2cdb29a768 Some IOS and Android changes contributed by technomage 2012-11-05 12:38:36 +00:00
lidgren
ce2644cead - Handle NatIntroduction message even if connection already exists 2012-10-29 16:01:48 +00:00
lidgren
0875aff427 tiny changes 2012-10-27 10:15:33 +00:00
lidgren
97112179ae UPnP now also tests for WANPPPConnection; see issue #138 2012-10-25 08:22:10 +00:00
lidgren
2db09b002d - UPnP changes - now tries to parse any incoming message, regardless of port 2012-10-25 08:12:14 +00:00
lidgren
e1a66ae0cd Robustified and optimized GetBestChunkSize() 2012-10-24 13:06:46 +00:00
lidgren
1801432a28 MasterServer sample improved 2012-10-19 07:25:34 +00:00