]>
git.seodisparate.com - UDPConnection/log
Stephen Seo [Wed, 6 Nov 2019 04:32:39 +0000 (13:32 +0900)]
Fix size count in TSLQueue when using iterator
Stephen Seo [Wed, 6 Nov 2019 03:54:03 +0000 (12:54 +0900)]
Add more tests to UnitTest for TSLQueue
Stephen Seo [Sun, 3 Nov 2019 09:46:25 +0000 (18:46 +0900)]
Add iterator to TSLQueue
Removed shared_ptr "locks", replaced by iterator owning a lock_guard.
Stephen Seo [Tue, 29 Oct 2019 11:33:16 +0000 (20:33 +0900)]
Replace std::list with own doubly-linked-list
TODO iterator
Stephen Seo [Mon, 28 Oct 2019 02:09:48 +0000 (11:09 +0900)]
Add remove() to TSLQueue's iterator wrapper
Minor additions to UnitTest.
Stephen Seo [Thu, 24 Oct 2019 11:25:41 +0000 (20:25 +0900)]
Add WIP UnitTests for TSLQueue
Stephen Seo [Thu, 24 Oct 2019 08:58:13 +0000 (17:58 +0900)]
Add prefix inc/dec to TSLQIterWrapper
Stephen Seo [Thu, 24 Oct 2019 08:51:40 +0000 (17:51 +0900)]
Add missing impl fn to TSLQueue
Stephen Seo [Thu, 24 Oct 2019 08:49:28 +0000 (17:49 +0900)]
Add impl of TSLQueue (TODO UnitTests)
Stephen Seo [Tue, 22 Oct 2019 11:24:23 +0000 (20:24 +0900)]
Begin work on TSLQueue
Stephen Seo [Tue, 22 Oct 2019 10:27:55 +0000 (19:27 +0900)]
Refactor logging
Removed redundant checking of logging type in log_impl* .
Stephen Seo [Fri, 27 Sep 2019 11:19:48 +0000 (20:19 +0900)]
Rework sendPkts (sending queue)
Changed sendPkts in ConnectionData to std::deque, added a TSQueue
cSendPkts to Context. Queued packets will be moved to corresponding
ConnectionData instances during update, dropping with a warning those
where a connection does not exist.
Minor other fixes.
Some additions to TSQueue.
Stephen Seo [Mon, 23 Sep 2019 11:11:12 +0000 (20:11 +0900)]
Implement header verification via libsodium
The original 20 byte header is now verified with public-key-crypto using
libsodium.
Also some fixes where ntohs/htons was not used where it should be.
Stephen Seo [Sat, 21 Sep 2019 03:15:49 +0000 (12:15 +0900)]
Add support for MINGW compiler
Stephen Seo [Fri, 20 Sep 2019 07:59:16 +0000 (16:59 +0900)]
Fixes and improvements
Fix use of accept-connections flag.
Fix use of TSQueue (add top_and_pop_and_rsize fn).
Reduce sleep time of threadedUpdate to 8 ms.
Stephen Seo [Fri, 20 Sep 2019 05:26:59 +0000 (14:26 +0900)]
Use macro to conditionally log
This should skip evaluating log parameters if the log level is not met.
Stephen Seo [Fri, 20 Sep 2019 05:01:26 +0000 (14:01 +0900)]
Many fixes, including sending packets with payload
Implemented UDPC_get_received
Added UDPC_get_list_connected and UDPC_free_list_connected.
Stephen Seo [Thu, 19 Sep 2019 05:30:10 +0000 (14:30 +0900)]
Fix parsing of ipv6 link-local address
Add support for numeric id in suffix of ipv6 link-local address.
Stephen Seo [Thu, 19 Sep 2019 03:23:15 +0000 (12:23 +0900)]
Fix Windows support
Stephen Seo [Thu, 19 Sep 2019 01:58:19 +0000 (10:58 +0900)]
Rename enum types to avoid name conflict
Stephen Seo [Thu, 19 Sep 2019 01:35:22 +0000 (10:35 +0900)]
Attempt to make code platform agnostic
Getting scope_id from device name from ipv6 link-local address was
previously using only a unix supported api. Added (untested) code to do
the same for windows machines.
Stephen Seo [Wed, 18 Sep 2019 09:39:35 +0000 (18:39 +0900)]
Fix atostr
Stephen Seo [Wed, 18 Sep 2019 08:35:14 +0000 (17:35 +0900)]
Add support for link-local ipv6 addr
Stephen Seo [Wed, 18 Sep 2019 04:56:04 +0000 (13:56 +0900)]
Fix NetworkTest
Allow setting listen addr to "any".
Stephen Seo [Wed, 18 Sep 2019 02:42:16 +0000 (11:42 +0900)]
Fix setting trigger-send flag
Fix trigger-send flag related bug where send time of packets were
inconsistent.
Also fix UDPC_client_initiate_connection not immediately sending connection
packet.
Stephen Seo [Tue, 17 Sep 2019 11:33:47 +0000 (20:33 +0900)]
Impl NetworkTest, fixes and refactoring
Basic connections can now be tested with NetworkTest.
Also includes fixes to UDPC that now create a working connection.
TODO Fix client sending at good rate even in bad rate mode.
Stephen Seo [Tue, 17 Sep 2019 08:17:16 +0000 (17:17 +0900)]
Add support for UDPC_strtoa to accept ipv4 input
UDPC_strtoa can now return an ipv4-mapped ipv6 address given an ipv4
string. Also, added validation of input strings via regex.
Stephen Seo [Mon, 16 Sep 2019 03:00:25 +0000 (12:00 +0900)]
Use mutex for thread safety
Stephen Seo [Mon, 16 Sep 2019 02:52:03 +0000 (11:52 +0900)]
Add command parsing for NetworkTest
Stephen Seo [Mon, 16 Sep 2019 02:40:43 +0000 (11:40 +0900)]
Impl threaded init/update
Stephen Seo [Sat, 7 Sep 2019 07:36:11 +0000 (16:36 +0900)]
Replace ipv4 with ipv6
ipv6 also supports sending to ipv4.
Stephen Seo [Tue, 3 Sep 2019 07:19:47 +0000 (16:19 +0900)]
Make atostr more thread safe
atostr now can hold 64 different results, and can be called from
multiple threads. Thus, a returned string buffer is valid until atostr
is called 64 more times.
Stephen Seo [Tue, 3 Sep 2019 06:15:09 +0000 (15:15 +0900)]
Prevent exceptions being thrown in TSQueue
TSQueue's top() and top_and_pop() now return std::optional<T> instead of
just T.
Stephen Seo [Tue, 3 Sep 2019 03:06:46 +0000 (12:06 +0900)]
Expose ConnectionId to C interface, fixes
Removed UDPC:ConnectionIdentifier from UDPC_Defines.hpp and added
ConnectionId to UDPConnection.h, and replaced/fixed instances of the
older type.
Stephen Seo [Fri, 30 Aug 2019 06:55:43 +0000 (15:55 +0900)]
Add top_and_pop fn to TSQueue
Stephen Seo [Fri, 30 Aug 2019 05:57:24 +0000 (14:57 +0900)]
Minor fixes
Stephen Seo [Fri, 30 Aug 2019 03:11:07 +0000 (12:11 +0900)]
Simpifly opaque struct handle to context
Stephen Seo [Fri, 30 Aug 2019 03:04:39 +0000 (12:04 +0900)]
Remove already resolved TODO comment
Stephen Seo [Fri, 30 Aug 2019 03:03:26 +0000 (12:03 +0900)]
Use opaque struct as handle in C interface, fix
Fixed log_impl_next.
Stephen Seo [Thu, 29 Aug 2019 03:56:09 +0000 (12:56 +0900)]
Impl logging, minor fixes/refactorings
Stephen Seo [Thu, 29 Aug 2019 02:20:36 +0000 (11:20 +0900)]
Minor formatting fix
Stephen Seo [Thu, 29 Aug 2019 02:07:24 +0000 (11:07 +0900)]
Add client_initiate_connection fn, some fixes
Stephen Seo [Wed, 28 Aug 2019 07:38:14 +0000 (16:38 +0900)]
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.
Stephen Seo [Wed, 28 Aug 2019 06:54:18 +0000 (15:54 +0900)]
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.
Stephen Seo [Tue, 27 Aug 2019 09:03:30 +0000 (18:03 +0900)]
Add some Unit Tests for UDPC
Stephen Seo [Tue, 27 Aug 2019 08:53:18 +0000 (17:53 +0900)]
Minor fix
Stephen Seo [Tue, 27 Aug 2019 08:00:29 +0000 (17:00 +0900)]
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.
Stephen Seo [Tue, 27 Aug 2019 07:31:24 +0000 (16:31 +0900)]
Replace all uses of float with chrono::duration
Stephen Seo [Tue, 27 Aug 2019 05:06:27 +0000 (14:06 +0900)]
Fix warnings, some impl, still WIP
Stephen Seo [Tue, 27 Aug 2019 04:06:15 +0000 (13:06 +0900)]
Set max size for received pkts queue
Stephen Seo [Tue, 27 Aug 2019 04:03:38 +0000 (13:03 +0900)]
Impl storing received packet
Stephen Seo [Tue, 27 Aug 2019 03:42:43 +0000 (12:42 +0900)]
Impl check timed-out packets
Still WIP
Stephen Seo [Thu, 22 Aug 2019 11:16:07 +0000 (20:16 +0900)]
More impl: rtt and timepoint per sent pkt
Stephen Seo [Thu, 22 Aug 2019 07:08:05 +0000 (16:08 +0900)]
More impl, fix move for TSQueue
Stephen Seo [Sun, 18 Aug 2019 10:14:14 +0000 (19:14 +0900)]
Some WIP impl of receiving packet handling
Stephen Seo [Sun, 18 Aug 2019 09:34:45 +0000 (18:34 +0900)]
Impl sending queued packet
TODO receiving packet
Stephen Seo [Sun, 18 Aug 2019 09:10:11 +0000 (18:10 +0900)]
Replace spinlock with mutex/lock_guard in TSQueue
Stephen Seo [Thu, 25 Jul 2019 11:51:08 +0000 (20:51 +0900)]
Some more work on cpp_impl (still WIP)
Stephen Seo [Sun, 21 Jul 2019 05:29:31 +0000 (14:29 +0900)]
Some work on update impl
Stephen Seo [Sun, 21 Jul 2019 04:45:42 +0000 (13:45 +0900)]
Minor changes/fixes, clang-format fixes
Stephen Seo [Sun, 7 Jul 2019 05:48:58 +0000 (14:48 +0900)]
Minor fix
Stephen Seo [Sun, 7 Jul 2019 05:44:37 +0000 (14:44 +0900)]
Add check for endianness, fix strtoa for ipv4
Stephen Seo [Sun, 7 Jul 2019 05:13:16 +0000 (14:13 +0900)]
Change TSQueue to be a wrapper around a queue
Stephen Seo [Fri, 7 Jun 2019 03:17:35 +0000 (12:17 +0900)]
Add more to unit test for TSQueue
Stephen Seo [Fri, 7 Jun 2019 02:33:44 +0000 (11:33 +0900)]
Add unit test and fixes for TSQueue
Stephen Seo [Thu, 6 Jun 2019 08:06:44 +0000 (17:06 +0900)]
Add more fns to TSQueue (still untested)
Stephen Seo [Thu, 6 Jun 2019 07:42:07 +0000 (16:42 +0900)]
Invoke ALEFix
Stephen Seo [Thu, 6 Jun 2019 07:40:04 +0000 (16:40 +0900)]
Create Thread-Safe-Queue (untested)
Stephen Seo [Thu, 6 Jun 2019 07:02:48 +0000 (16:02 +0900)]
Skeleton code set up for cpp impl
Stephen Seo [Mon, 22 Apr 2019 09:27:34 +0000 (18:27 +0900)]
Fix c_impl not installing to lib/ for Debug
Stephen Seo [Mon, 22 Apr 2019 09:18:03 +0000 (18:18 +0900)]
rust_binding now builds C lib Release/Debug
Stephen Seo [Mon, 22 Apr 2019 08:55:23 +0000 (17:55 +0900)]
Remove unnecessary ArchLinux PKGBUILD
Stephen Seo [Mon, 22 Apr 2019 08:54:37 +0000 (17:54 +0900)]
Allow rust_binding to build the C library
Stephen Seo [Wed, 17 Apr 2019 06:21:03 +0000 (15:21 +0900)]
Add new function to whitelist
Stephen Seo [Wed, 17 Apr 2019 06:16:23 +0000 (15:16 +0900)]
Move gitignore for c_impl to correct place
Stephen Seo [Wed, 17 Apr 2019 05:19:28 +0000 (14:19 +0900)]
Add buildgen rust binding
Stephen Seo [Wed, 17 Apr 2019 06:15:19 +0000 (15:15 +0900)]
Add function to drop connection to specific addr
Also added minor note about ctx->idMap
Stephen Seo [Tue, 12 Mar 2019 05:28:28 +0000 (14:28 +0900)]
Fix prepare_pkt function
Stephen Seo [Tue, 12 Mar 2019 05:11:22 +0000 (14:11 +0900)]
Fix server ignoring first packet from client
Stephen Seo [Tue, 12 Mar 2019 04:49:14 +0000 (13:49 +0900)]
Add HashMap keyed by id for quick id lookups
Stephen Seo [Thu, 7 Mar 2019 03:16:03 +0000 (12:16 +0900)]
Fix UDPC destruct order when using thread
Stephen Seo [Thu, 7 Mar 2019 03:10:53 +0000 (12:10 +0900)]
Fix mutex lock not being unlocked
Stephen Seo [Thu, 7 Mar 2019 03:01:21 +0000 (12:01 +0900)]
Change isThreaded flag to be separate int
Stephen Seo [Thu, 7 Mar 2019 02:57:06 +0000 (11:57 +0900)]
Add get/set protocol id capability
Stephen Seo [Wed, 6 Mar 2019 12:51:09 +0000 (21:51 +0900)]
Minor doc fix
Stephen Seo [Wed, 6 Mar 2019 12:50:13 +0000 (21:50 +0900)]
Fix const error strings
Stephen Seo [Wed, 6 Mar 2019 11:34:24 +0000 (20:34 +0900)]
Add more documentation
Stephen Seo [Wed, 6 Mar 2019 11:31:23 +0000 (20:31 +0900)]
Add more documentation
Stephen Seo [Wed, 6 Mar 2019 11:13:38 +0000 (20:13 +0900)]
Add get/set accept-new-connections fn
Fix some functions not using mutex when threaded update is enabled.
Stephen Seo [Wed, 6 Mar 2019 10:53:15 +0000 (19:53 +0900)]
Change UDPConnection to set listen address
Add some documentation, fix NetworkTest with new change.
Stephen Seo [Wed, 6 Mar 2019 04:49:56 +0000 (13:49 +0900)]
Minor fix to NetworkTest
Stephen Seo [Wed, 6 Mar 2019 04:23:22 +0000 (13:23 +0900)]
Fix received callback, minor change to NetworkTest
Stephen Seo [Tue, 5 Mar 2019 03:56:05 +0000 (12:56 +0900)]
Fix threaded update
Stephen Seo [Tue, 5 Mar 2019 03:11:57 +0000 (12:11 +0900)]
Change NetworkTest to exit after disconnect
Stephen Seo [Tue, 5 Mar 2019 03:07:03 +0000 (12:07 +0900)]
Fix memory leaks
Stephen Seo [Mon, 4 Mar 2019 10:28:05 +0000 (19:28 +0900)]
More fixes to UDPConnection
Stephen Seo [Mon, 4 Mar 2019 10:17:55 +0000 (19:17 +0900)]
Fix new connections not being created
Stephen Seo [Mon, 4 Mar 2019 10:05:07 +0000 (19:05 +0900)]
Fix endianness of addr, minor fixes
Stephen Seo [Mon, 4 Mar 2019 09:17:28 +0000 (18:17 +0900)]
More fixes
Stephen Seo [Mon, 4 Mar 2019 08:56:40 +0000 (17:56 +0900)]
Fix NetworkTest