Commit Graph

12 Commits

Author SHA1 Message Date
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