Commit graph

116 commits

Author SHA1 Message Date
Stephen Seo 3a754e97b5 Impl logging, minor fixes/refactorings 2019-08-29 12:56:09 +09:00
Stephen Seo 6aa2e8aa51 Minor formatting fix 2019-08-29 11:20:36 +09:00
Stephen Seo d027b1703a Add client_initiate_connection fn, some fixes 2019-08-29 11:07:24 +09:00
Stephen Seo f10521ec52 Impl drop all connections with specific addr
Fix UDPC_drop_connection that didn't fully cleanup connection data.

Added UDPC_drop_connection_addr fn that drops all connections with a
specific addr.
2019-08-28 16:38:14 +09:00
Stephen Seo 8dba751929 Some fixes
Fix id of sent packet stored in network byte order instead of native
order.

Fix failing to send packet not stopping storing sent packet data.
2019-08-28 15:54:18 +09:00
Stephen Seo 35bc629b1b Add some Unit Tests for UDPC 2019-08-27 18:03:30 +09:00
Stephen Seo 8883d84b9b Minor fix 2019-08-27 17:53:18 +09:00
Stephen Seo 1382cc6b7c Store connections based on both addr and port
Previous implementation only stored based on addr only, preventing
connections from/to the same address but different ports.
2019-08-27 17:00:29 +09:00
Stephen Seo 57e270eb15 Replace all uses of float with chrono::duration 2019-08-27 16:31:24 +09:00
Stephen Seo f5cfbe41d5 Fix warnings, some impl, still WIP 2019-08-27 14:06:27 +09:00
Stephen Seo da6d752b55 Set max size for received pkts queue 2019-08-27 13:06:15 +09:00
Stephen Seo 236b03c9b1 Impl storing received packet 2019-08-27 13:03:38 +09:00
Stephen Seo 418c088084 Impl check timed-out packets
Still WIP
2019-08-27 12:42:43 +09:00
Stephen Seo 7482fecb37 More impl: rtt and timepoint per sent pkt 2019-08-22 20:16:07 +09:00
Stephen Seo 0065928422 More impl, fix move for TSQueue 2019-08-22 16:08:05 +09:00
Stephen Seo 1e0f631ab2 Some WIP impl of receiving packet handling 2019-08-18 19:14:14 +09:00
Stephen Seo bf27c328a6 Impl sending queued packet
TODO receiving packet
2019-08-18 18:34:45 +09:00
Stephen Seo 29009c2b8c Replace spinlock with mutex/lock_guard in TSQueue 2019-08-18 18:10:11 +09:00
Stephen Seo 5c4360cabe Some more work on cpp_impl (still WIP) 2019-07-25 20:51:08 +09:00
Stephen Seo 0bd51418a2 Some work on update impl 2019-07-21 14:29:31 +09:00
Stephen Seo 640102c091 Minor changes/fixes, clang-format fixes 2019-07-21 13:45:42 +09:00
Stephen Seo 084700d54b Minor fix 2019-07-07 14:48:58 +09:00
Stephen Seo 132508d5cc Add check for endianness, fix strtoa for ipv4 2019-07-07 14:44:37 +09:00
Stephen Seo f10c53d92c Change TSQueue to be a wrapper around a queue 2019-07-07 14:13:16 +09:00
Stephen Seo 973e71ead0 Add more to unit test for TSQueue 2019-06-07 12:17:35 +09:00
Stephen Seo 8548d4f6ed Add unit test and fixes for TSQueue 2019-06-07 11:33:44 +09:00
Stephen Seo 76567d168e Add more fns to TSQueue (still untested) 2019-06-06 17:06:44 +09:00
Stephen Seo 28d832a349 Invoke ALEFix 2019-06-06 16:42:07 +09:00
Stephen Seo 2aa4600c57 Create Thread-Safe-Queue (untested) 2019-06-06 16:40:17 +09:00
Stephen Seo 4b56bda4b1 Skeleton code set up for cpp impl 2019-06-06 16:02:48 +09:00
Stephen Seo dc5ba1bf14 Fix c_impl not installing to lib/ for Debug 2019-04-22 18:27:34 +09:00
Stephen Seo 5dd42a6e23 rust_binding now builds C lib Release/Debug 2019-04-22 18:18:03 +09:00
Stephen Seo b703247aed Remove unnecessary ArchLinux PKGBUILD 2019-04-22 17:55:23 +09:00
Stephen Seo ce4a8c56ac Allow rust_binding to build the C library 2019-04-22 17:54:37 +09:00
Stephen Seo ad83caa6e5 Add new function to whitelist 2019-04-17 15:21:03 +09:00
Stephen Seo e1d91a4b5e Move gitignore for c_impl to correct place 2019-04-17 15:16:23 +09:00
Stephen Seo 1eed614ded Add buildgen rust binding 2019-04-17 15:15:53 +09:00
Stephen Seo a33004a4c9 Add function to drop connection to specific addr
Also added minor note about ctx->idMap
2019-04-17 15:15:19 +09:00
Stephen Seo 537fef9e8a Fix prepare_pkt function 2019-03-12 14:28:28 +09:00
Stephen Seo bf3f3c334e Fix server ignoring first packet from client 2019-03-12 14:11:22 +09:00
Stephen Seo 78db1a58c7 Add HashMap keyed by id for quick id lookups 2019-03-12 13:49:14 +09:00
Stephen Seo 05ece7c626 Fix UDPC destruct order when using thread 2019-03-07 12:16:03 +09:00
Stephen Seo c82fd10470 Fix mutex lock not being unlocked 2019-03-07 12:10:53 +09:00
Stephen Seo 1c24cc9311 Change isThreaded flag to be separate int 2019-03-07 12:01:21 +09:00
Stephen Seo 50f105ecfb Add get/set protocol id capability 2019-03-07 11:57:06 +09:00
Stephen Seo 44d1be6a23 Minor doc fix 2019-03-06 21:51:09 +09:00
Stephen Seo 1e5175d0d1 Fix const error strings 2019-03-06 21:50:13 +09:00
Stephen Seo 767e96e227 Add more documentation 2019-03-06 20:34:24 +09:00
Stephen Seo fe13c407ba Add more documentation 2019-03-06 20:31:23 +09:00
Stephen Seo 97cbe37545 Add get/set accept-new-connections fn
Fix some functions not using mutex when threaded update is enabled.
2019-03-06 20:13:38 +09:00