Commit Graph

4507 Commits

Author SHA1 Message Date
vis2k
a3d43e215a NetworkConnection, NetworkWriter: max packet size checks use Transport.MaxPacketSize instead of UInt16.MaxValue now 2018-09-26 14:49:36 +02:00
vis2k
8f3de9f26b NetworkClient.UpdateClients: comment grammar fixed 2018-09-26 14:40:56 +02:00
vis2k
44fface440 NetworkClient.Update syntax improved 2018-09-26 14:39:55 +02:00
vis2k
b74b02731f NetworkClient.PrepareForConnect: removed unused usePlatformSpecificProtocols parameter 2018-09-26 14:38:27 +02:00
vis2k
2c10471470 NetworkClient.IsValidIpV6 removed because it wasn't used anymore 2018-09-26 14:36:05 +02:00
vis2k
e34e8ba41e Weaver.ProcessSiteMethod: improved prefix checks 2018-09-26 14:29:20 +02:00
vis2k
f7d7a671d3 Syntax 2018-09-26 14:29:20 +02:00
Paul Pacheco
14d4059f90 Publish a git release after a successfull build 2018-09-26 06:32:38 -05:00
Paul Pacheco
493a295f88 Type safe register/unregister handlers (#44) 2018-09-25 20:59:57 +02:00
vis2k
f3886906ef
Update README.md 2018-09-25 13:37:56 +02:00
vis2k
ed189c9b09
Update README.md 2018-09-25 13:37:01 +02:00
vis2k
5e42409646
Update README.md 2018-09-24 22:28:20 +02:00
vis2k
36f07ed861
Update README.md 2018-09-24 22:10:19 +02:00
vis2k
e3826707ed Updated Telepathy. Fixes a bug where Connecting was still true after getting kicked from the server. 2018-09-21 16:23:53 +02:00
vis2k
d9ae14efe1 NetworkConnection.Disconnect properly disconnects the client transport layer now too. Fixes a bug where the client transport would keep running in the editor even if we pressed 'Stop' in the NetworkManagerHUD 2018-09-20 16:36:05 +02:00
vis2k
c39c8b5739 Transport.ServerDisconnect function to kick a client 2018-09-20 16:11:52 +02:00
vis2k
9b87e5a2cb Updated Telepathy 2018-09-20 15:48:25 +02:00
vis2k
410a3fff80 Updated Telepathy to latest version 2018-09-20 15:33:55 +02:00
Paul Pacheco
cdd4eac7a1 Flush when starting or finishing a message. (#4)
This is a no-op with BinaryWriter/MemoryStream,  but this is necesary if we do
any sort of transformation,  such as BitWriter, compression or encryption
2018-09-19 13:06:29 -05:00
Paul Pacheco
ec48bcc496 Add source compatibility with HLAPI, people should not need to cast (#16) 2018-09-19 13:05:43 -05:00
Paul Pacheco
547039587e set the state to connected before message handler (#36)
If the user wants to send messages after the connection,  we need to ensure the connection is in a valid state before calling the handler.

Should fix issue #35
2018-09-18 20:56:44 +02:00
Paul Pacheco
8896d8b7d2 fix #33, remove redundant initialization (#34)
No need to initialize object twice,   the second initialize does nothing at all
2018-09-18 20:52:39 +02:00
Paul Pacheco
973c0d6925 Make method public (#32)
Not all users have a NetworkManager,  and they should not have to.

This method needs to be public so that users can call it if they don't have a NetworkManager
2018-09-18 09:55:21 +02:00
vis2k
8657a3902e PauseQueue replaced with a more simple 'pause' check in NetworkClient.Update. Transport buffers messages anyway. 2018-09-15 16:15:28 +02:00
vis2k
577da33c6e NetworkManagerHUDEditor: removed unused s_ShowNetworkLabel 2018-09-15 15:43:12 +02:00
vis2k
936f43b783 NetworkClient.Update: m_Connection null checks added so we don't get NullReferenceExceptions without a good error message if it's null (uMMORPG NetworkZones Addon) 2018-09-15 15:40:48 +02:00
vis2k
046837c62a NetworkManager.StartServer: OnStartServer is now called after Listen so that NetworkServer.Spawn can be called in OnStartServer overrides (e.g. to load and spawn things from the database) 2018-09-14 23:07:44 +02:00
Paul Pacheco
1e8ab0699a
Trigger appveyor rebuild 2018-09-14 14:04:49 -05:00
vis2k
41af472127 MultiplexTransport: ServerStart/ServerStartWebsockets doesn't call Telepathy/LLAPI StartServer when running in WebGL. Fixes a bug where host mode wouldn't work in WebGL anymore. 2018-09-11 10:45:36 +02:00
Paul Pacheco
37ce0ae72d Print a more informative error than NPE (#31)
* Print a more informative error than NPE

* Improve error message
2018-09-11 10:16:20 +02:00
Paul Pacheco
dfbde9902d
Update badges for mirror
Mirror repository was renamed and a mirror branch was created
2018-09-09 11:27:36 -05:00
vis2k
f5e2ee0903
Update README.md 2018-09-09 09:34:28 +02:00
vis2k
a4dd858f02 NetworkManagerEditor shows max connections property again 2018-09-03 12:37:30 +02:00
vis2k
1ab29c8d24 NetworkManagerHUDEditor: removed unnecessary 'protected's 2018-09-03 12:37:30 +02:00
Paul Pacheco
ccb121362b
Merge pull request #22 from vis2k/synclist
Generated Awake should not be private because a child class might call it
2018-08-31 07:41:33 -05:00
Paul Pacheco
80a9a18728 This should be protected because a child class might call it 2018-08-31 07:40:34 -05:00
vis2k
c053a76843 Sorted modifiers: 'public static' is now consistent everywhere (it was 'static public' in many places) 2018-08-31 12:39:51 +02:00
vis2k
6ad5ccaa07 Removed old ExternalConnection functions because they aren't used anymore 2018-08-31 12:34:44 +02:00
vis2k
2b1b7eb62f Fixed NetworkManager.OnServerDisconnect logging an error each time. This annoying behaviour has been there since day one. 2018-08-31 12:13:47 +02:00
Paul Pacheco
89035f4c0b
Better grammar 2018-08-30 22:42:53 -05:00
Paul Pacheco
fff0fe7e00
Fixed correct package 2018-08-30 22:36:31 -05:00
Paul Pacheco
6c25b7aa37 Some cleanups, use explicit type, remove unused imports 2018-08-30 09:04:23 -05:00
Paul Pacheco
310fae52df Merge branch 'mirror' of https://github.com/vis2k/HLAPI-Community-Edition into mirror 2018-08-30 08:47:05 -05:00
Paul Pacheco
8309ab8479 Fix issue finding extra paths, use Unity provided list of compiled references 2018-08-30 08:46:55 -05:00
vis2k
ebf6ab6777 Renamed UNetWeaver.cs to Weaver.cs and renamed the warning/error messages too 2018-08-30 15:15:05 +02:00
Paul Pacheco
47c98a0a59
better grammar 2018-08-29 10:39:56 -05:00
Paul Pacheco
71424e7f99
added exact error 2018-08-29 10:38:38 -05:00
Paul Pacheco
431129a277
UnityWebRequest error 2018-08-29 10:33:40 -05:00
Paul Pacheco
7284b1181a
Typos, grammar, possible errors 2018-08-29 08:04:58 -05:00
Paul Pacheco
0275cee09f
Fix typo 2018-08-29 08:00:04 -05:00