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

77 Commits

Author SHA1 Message Date
Michael Lidgren
fa8b1e986d First iteration improved multiplatform support 2015-03-24 13:26:55 +01:00
Michael Lidgren
b3fffb52e5 changed remaining float representations of time to doubles 2015-02-06 18:57:42 +01:00
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
601666d9fb Fix to rebind same port as previously bound 2014-10-11 08:25:21 +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
e206ba210e Added code to rebind socket after a NetConnected socket error; thanks Rhee 2014-10-08 12:08:43 +00:00
lidgren
f2aa4b4ce2 Warnings and minor inconsistencies fixed 2014-08-25 07:34:56 +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
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
28ca421b63 Added option to specify synchronizationcontext when registering callback 2014-01-22 13:59:39 +00:00
lidgren
f32e40d048 Fixed AcceptIncomingConnections = false actualling having an effect 2013-05-07 07:37:27 +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
2db09b002d - UPnP changes - now tries to parse any incoming message, regardless of port 2012-10-25 08:12:14 +00:00
lidgren
2e7761e113 UnregisterReceivedCallback added 2012-09-18 15:12:34 +00:00
lidgren
b4b01aa52d Fix for time issue 129; thanks to jujjyl 2012-08-23 12:55:12 +00:00
lidgren
1ecf9fd8b8 Changed all Endpoint to EndPoint for consistency 2012-07-06 21:28:13 +00:00
lidgren
d11dcbe257 Invalid warning message about status fixed 2012-07-06 18:29:57 +00:00
lidgren
fbb6d9ed51 - Patch from MonoGame; makes the BroadcastAddress configurable and changes text encoding from ASCII to UTF8, required for Android support 2012-06-08 07:35:02 +00:00
lidgren
a5781b4688 Flushing delayed packets when shutting down NetPeer 2012-05-26 09:08:04 +00:00
lidgren
af3608c544 Extra try-catch added for socket.Shutdown() failing on mono 2011-12-19 10:20:11 +00:00
lidgren
ba7cf8f381 SIO_UDP_CONNRESET now try-catched since not available in mono 2011-11-28 08:10:58 +00:00
lidgren
95850b205a Suppressed Connection Reset messages. Fixed Chat server sample. 2011-11-06 09:24:08 +00:00
lidgren
60a6b28189 NetPeerConfiguration.AutoFlushSendQueue added. When set to false; application must call NetPeer.FlushSendQueue manually. 2011-09-12 09:34:50 +00:00
lidgren
39459f6833 throw explanatory exception if trying to register callback with no sycnhronizationcontext 2011-07-18 21:08:08 +00:00
lidgren
9554d33492 One more define to allow unity web player to run 2011-06-21 06:47:34 +00:00
lidgren
5234fb64c6 Added fix for discovery requests arriving when handshake in progress
Added sanity checks for handshake connections (in DEBUG)
2011-06-12 14:30:20 +00:00
lidgren
e10be613d6 MessageReceivedEvent fired upon shutdown 2011-06-09 18:46:20 +00:00
lidgren
c0a7281ecf Added XML comment 2011-05-18 06:39:39 +00:00
lidgren
c56e190cba RegisterReceivedCallback added to get a callback using SynchronizationContext when a message arrives 2011-05-18 06:17:15 +00:00
lidgren
cd7ccd6bae Fixed host port switch detection 2011-04-28 06:55:58 +00:00
lidgren
713d91ac58 UPnP support added: get external ip, add forwarding rule and delete forwarding rule 2011-04-27 20:52:29 +00:00
lidgren
b575f72186 Receiving (correctly) ConnectResponse from the correct address but wrong port will now mutate the connection to accept it; apparently some routers change outgoing port 2011-04-27 17:42:32 +00:00
lidgren
bd58c6400d host port switch support for handshake begun 2011-04-25 21:38:23 +00:00
lidgren
5b4a4a7fc5 Statistics fixed and USE_RELEASE_STATISTICS defines added 2011-03-26 08:18:21 +00:00
lidgren
97a2b76856 Fixed shutdown iteration issue 2011-03-10 18:45:18 +00:00
lidgren
cb887dd4b5 try-catch added when trying to get MAC address 2010-12-24 08:04:23 +00:00
lidgren
330c5cf83e ConnectionLatencyUpdated message type added; WriteTime() ReadTime() added 2010-12-20 10:35:51 +00:00
lidgren
772d80835b Crude Path MTU detection added 2010-12-12 19:07:55 +00:00
lidgren
55cdf75c5f Exposed the Socket in NetPeer 2010-12-09 21:51:03 +00:00
lidgren
47579ba32f Removed bad check 2010-11-03 13:15:45 +00:00
lidgren
dd192b1486 Capped max connection heartbeats per second 2010-11-03 13:00:05 +00:00