Commit Graph

27 Commits

Author SHA1 Message Date
Cinder Roxley
def5ea19c2 Address Issue #80 packetInbox/packetOutbox may already be destroyed before NetworkManager.Shutdown() is called. The very obvious fragility of the code is an issue, but we'll slap a bandaid on there. 2024-06-30 08:41:43 -05:00
Robert Adams
6bc260dcb9 More syntactic stuff to make static code review happy.
Made CreatePatch private so float[,] wasn't a problem.
Centralized some duplicate code.
Removed even more instances of optional parameters.
2023-06-30 17:00:10 -07:00
Robert Adams
7bf28bd0ed Syntactical corrections to try and make the code style checker happy.
Added overloaded method to replace optional parameters.
Possibly still a problem with float[,] since C# doesn't have a typedef.
2023-06-30 16:10:15 -07:00
Robert Adams
babd04c145 Fix OSDMap pre-allocation parameters for the addition of RegionSize entries.
Small syntax updates.
2023-06-18 07:33:54 -07:00
Robert Adams
d862b737b0 Add RegionSizeX,RegionSizeY to Simulator class.
Add logic to copy region size info (if supplied) into Simulator class on instance creation.
Add region size fields to definitions of LoginResponse, EnableSimulator, TeleportFinishMessage, CrossedRegionMessage.
Add constants Simulator.DefaultRegionSizeX=256 and Simulator.DefaultRegionSizeY=256
Add display of region size in "RegionInfo" TestClient command
2023-06-16 13:17:13 -07:00
cinder
69bdd4f904 Give SimDisconnect a more helpful debug message 2023-01-28 21:16:37 -06:00
cinder
80db59e235 Minor 2023-01-28 20:37:22 -06:00
cinder
1941e38c8f Mnior changes in NetworkManager 2023-01-28 11:54:16 -06:00
cinder
6781521ccb Null propegation 2023-01-27 21:07:39 -06:00
cinder
17f5c18d19 CLeaning 2022-12-31 14:19:13 -06:00
cinder
d7de598d7e Revert "So much cuteness"
This reverts commit 28b42ce2d2.
2022-11-20 00:08:33 -06:00
cinder
30e8d06c11 Fix annoying gramatical error that was cut and pasted 50 times 2022-11-14 18:48:49 -06:00
cinder
e5e6103c89 Docu and logging 2022-11-11 10:16:31 -06:00
cinder
9d3ac9d3a6 Seed capabilities using HttpCapsClient 2022-11-03 14:47:34 -05:00
cinder
28b42ce2d2 So much cuteness 2022-10-10 16:38:34 -05:00
Cinder
e26ae695fe Remove unnecessary imports 2021-12-09 14:23:33 -06:00
Cinder
d8b115c1b0 Autoprops everywhere 2021-12-09 14:21:48 -06:00
Madpeterz
8f0cae35e7 Update NetworkManager.cs
adds extra checks for null and improves SendPacket, also adds a new function: NetworkInvaildWarning to handle passing to the log as debug level.

why: In some cases the network can disconnect from the sim in a weird way so the client trys to send data out but the outbox / inbox are gone. these extra checks
will help stop it from outright killing itself.
2020-12-19 23:44:04 +00:00
nopjmp
8d0ea08ca7 misc clean up of locks and add more readonly.
UtilizationStatistics.cs: "deep copy" statistics out
2019-12-16 19:50:19 -06:00
nopjmp
9754a1dc66 switch back to a class object instead of a struct 2019-12-11 21:00:06 -06:00
nopjmp
1e19e95d46 Update XmlRpcCore to move to HttpClient implementation 2019-12-04 17:26:35 -06:00
nopjmp
202b95ae0e bring back primitive outgoing packet throttle 2019-12-02 00:03:34 -06:00
nopjmp
ca23a4efe1 fix _packetInboxCount/_packetOutboxCount accounting
I failed to reset to zero and decrement the count.
2019-12-01 20:50:44 -06:00
nopjmp
e9022b6cc3 rewrite packet handling to use Threading Channels
This should prevent unnecessary wait looping internally and lower the packets time to start processing.

Seems to fix WoofBot's packet processing hot path.
2019-12-01 20:23:35 -06:00
nopjmp
7a4588e65a Remove custom Queue implementations
* Additionally use a SemaphoreSlim for checking queue size and waiting
* Use ConcurrentQueue for most things
2019-10-26 16:38:51 -05:00
nopjmp
44feb64f46 Clean up UDP Packet buffers 2019-10-25 10:46:20 -05:00
Ricky C
f1e4854bab File name change part 1 2017-03-11 22:21:07 -08:00