]> git.seodisparate.com - UDPConnection/log
UDPConnection
5 years agoSome WIP impl of receiving packet handling
Stephen Seo [Sun, 18 Aug 2019 10:14:14 +0000 (19:14 +0900)]
Some WIP impl of receiving packet handling

5 years agoImpl sending queued packet
Stephen Seo [Sun, 18 Aug 2019 09:34:45 +0000 (18:34 +0900)]
Impl sending queued packet

TODO receiving packet

5 years agoReplace spinlock with mutex/lock_guard in TSQueue
Stephen Seo [Sun, 18 Aug 2019 09:10:11 +0000 (18:10 +0900)]
Replace spinlock with mutex/lock_guard in TSQueue

5 years agoSome more work on cpp_impl (still WIP)
Stephen Seo [Thu, 25 Jul 2019 11:51:08 +0000 (20:51 +0900)]
Some more work on cpp_impl (still WIP)

5 years agoSome work on update impl
Stephen Seo [Sun, 21 Jul 2019 05:29:31 +0000 (14:29 +0900)]
Some work on update impl

5 years agoMinor changes/fixes, clang-format fixes
Stephen Seo [Sun, 21 Jul 2019 04:45:42 +0000 (13:45 +0900)]
Minor changes/fixes, clang-format fixes

5 years agoMinor fix
Stephen Seo [Sun, 7 Jul 2019 05:48:58 +0000 (14:48 +0900)]
Minor fix

5 years agoAdd check for endianness, fix strtoa for ipv4
Stephen Seo [Sun, 7 Jul 2019 05:44:37 +0000 (14:44 +0900)]
Add check for endianness, fix strtoa for ipv4

5 years agoChange TSQueue to be a wrapper around a queue
Stephen Seo [Sun, 7 Jul 2019 05:13:16 +0000 (14:13 +0900)]
Change TSQueue to be a wrapper around a queue

5 years agoAdd more to unit test for TSQueue
Stephen Seo [Fri, 7 Jun 2019 03:17:35 +0000 (12:17 +0900)]
Add more to unit test for TSQueue

5 years agoAdd unit test and fixes for TSQueue
Stephen Seo [Fri, 7 Jun 2019 02:33:44 +0000 (11:33 +0900)]
Add unit test and fixes for TSQueue

5 years agoAdd more fns to TSQueue (still untested)
Stephen Seo [Thu, 6 Jun 2019 08:06:44 +0000 (17:06 +0900)]
Add more fns to TSQueue (still untested)

5 years agoInvoke ALEFix
Stephen Seo [Thu, 6 Jun 2019 07:42:07 +0000 (16:42 +0900)]
Invoke ALEFix

5 years agoCreate Thread-Safe-Queue (untested)
Stephen Seo [Thu, 6 Jun 2019 07:40:04 +0000 (16:40 +0900)]
Create Thread-Safe-Queue (untested)

5 years agoSkeleton code set up for cpp impl
Stephen Seo [Thu, 6 Jun 2019 07:02:48 +0000 (16:02 +0900)]
Skeleton code set up for cpp impl

6 years agoFix c_impl not installing to lib/ for Debug
Stephen Seo [Mon, 22 Apr 2019 09:27:34 +0000 (18:27 +0900)]
Fix c_impl not installing to lib/ for Debug

6 years agorust_binding now builds C lib Release/Debug
Stephen Seo [Mon, 22 Apr 2019 09:18:03 +0000 (18:18 +0900)]
rust_binding now builds C lib Release/Debug

6 years agoRemove unnecessary ArchLinux PKGBUILD
Stephen Seo [Mon, 22 Apr 2019 08:55:23 +0000 (17:55 +0900)]
Remove unnecessary ArchLinux PKGBUILD

6 years agoAllow rust_binding to build the C library
Stephen Seo [Mon, 22 Apr 2019 08:54:37 +0000 (17:54 +0900)]
Allow rust_binding to build the C library

6 years agoAdd new function to whitelist
Stephen Seo [Wed, 17 Apr 2019 06:21:03 +0000 (15:21 +0900)]
Add new function to whitelist

6 years agoMove gitignore for c_impl to correct place
Stephen Seo [Wed, 17 Apr 2019 06:16:23 +0000 (15:16 +0900)]
Move gitignore for c_impl to correct place

6 years agoAdd buildgen rust binding
Stephen Seo [Wed, 17 Apr 2019 05:19:28 +0000 (14:19 +0900)]
Add buildgen rust binding

6 years agoAdd function to drop connection to specific addr
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

6 years agoFix prepare_pkt function
Stephen Seo [Tue, 12 Mar 2019 05:28:28 +0000 (14:28 +0900)]
Fix prepare_pkt function

6 years agoFix server ignoring first packet from client
Stephen Seo [Tue, 12 Mar 2019 05:11:22 +0000 (14:11 +0900)]
Fix server ignoring first packet from client

6 years agoAdd HashMap keyed by id for quick id lookups
Stephen Seo [Tue, 12 Mar 2019 04:49:14 +0000 (13:49 +0900)]
Add HashMap keyed by id for quick id lookups

6 years agoFix UDPC destruct order when using thread
Stephen Seo [Thu, 7 Mar 2019 03:16:03 +0000 (12:16 +0900)]
Fix UDPC destruct order when using thread

6 years agoFix mutex lock not being unlocked
Stephen Seo [Thu, 7 Mar 2019 03:10:53 +0000 (12:10 +0900)]
Fix mutex lock not being unlocked

6 years agoChange isThreaded flag to be separate int
Stephen Seo [Thu, 7 Mar 2019 03:01:21 +0000 (12:01 +0900)]
Change isThreaded flag to be separate int

6 years agoAdd get/set protocol id capability
Stephen Seo [Thu, 7 Mar 2019 02:57:06 +0000 (11:57 +0900)]
Add get/set protocol id capability

6 years agoMinor doc fix
Stephen Seo [Wed, 6 Mar 2019 12:51:09 +0000 (21:51 +0900)]
Minor doc fix

6 years agoFix const error strings
Stephen Seo [Wed, 6 Mar 2019 12:50:13 +0000 (21:50 +0900)]
Fix const error strings

6 years agoAdd more documentation
Stephen Seo [Wed, 6 Mar 2019 11:34:24 +0000 (20:34 +0900)]
Add more documentation

6 years agoAdd more documentation
Stephen Seo [Wed, 6 Mar 2019 11:31:23 +0000 (20:31 +0900)]
Add more documentation

6 years agoAdd get/set accept-new-connections fn
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.

6 years agoChange UDPConnection to set listen address
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.

6 years agoMinor fix to NetworkTest
Stephen Seo [Wed, 6 Mar 2019 04:49:56 +0000 (13:49 +0900)]
Minor fix to NetworkTest

6 years agoFix received callback, minor change to NetworkTest
Stephen Seo [Wed, 6 Mar 2019 04:23:22 +0000 (13:23 +0900)]
Fix received callback, minor change to NetworkTest

6 years agoFix threaded update
Stephen Seo [Tue, 5 Mar 2019 03:56:05 +0000 (12:56 +0900)]
Fix threaded update

6 years agoChange NetworkTest to exit after disconnect
Stephen Seo [Tue, 5 Mar 2019 03:11:57 +0000 (12:11 +0900)]
Change NetworkTest to exit after disconnect

6 years agoFix memory leaks
Stephen Seo [Tue, 5 Mar 2019 03:07:03 +0000 (12:07 +0900)]
Fix memory leaks

6 years agoMore fixes to UDPConnection
Stephen Seo [Mon, 4 Mar 2019 10:28:05 +0000 (19:28 +0900)]
More fixes to UDPConnection

6 years agoFix new connections not being created
Stephen Seo [Mon, 4 Mar 2019 10:17:55 +0000 (19:17 +0900)]
Fix new connections not being created

6 years agoFix endianness of addr, minor fixes
Stephen Seo [Mon, 4 Mar 2019 10:05:07 +0000 (19:05 +0900)]
Fix endianness of addr, minor fixes

6 years agoMore fixes
Stephen Seo [Mon, 4 Mar 2019 09:17:28 +0000 (18:17 +0900)]
More fixes

6 years agoFix NetworkTest
Stephen Seo [Mon, 4 Mar 2019 08:56:40 +0000 (17:56 +0900)]
Fix NetworkTest

6 years agoFixes to NetworkTest
Stephen Seo [Mon, 4 Mar 2019 08:48:32 +0000 (17:48 +0900)]
Fixes to NetworkTest

6 years agoAdd check for no pkt received (non-blocking)
Stephen Seo [Mon, 4 Mar 2019 06:27:01 +0000 (15:27 +0900)]
Add check for no pkt received (non-blocking)

6 years agoAdd NetworkTest executable
Stephen Seo [Mon, 4 Mar 2019 06:20:22 +0000 (15:20 +0900)]
Add NetworkTest executable

To be used to debug UDPConnection.

6 years agoAdd UDPC_strtoa
Stephen Seo [Mon, 4 Mar 2019 06:05:21 +0000 (15:05 +0900)]
Add UDPC_strtoa

6 years agoMore impl of UDPConnection
Stephen Seo [Mon, 4 Mar 2019 06:04:16 +0000 (15:04 +0900)]
More impl of UDPConnection

Add client initiate connection.

6 years agoUse locks on check_events for threaded case
Stephen Seo [Mon, 4 Mar 2019 02:40:34 +0000 (11:40 +0900)]
Use locks on check_events for threaded case

6 years agoAdd resendPktQueue to struct in UDPConnection
Stephen Seo [Mon, 4 Mar 2019 02:32:44 +0000 (11:32 +0900)]
Add resendPktQueue to struct in UDPConnection

Resending packets now put in higher priority queue in ConnectionData; if
queued both regular packet and resending packet, resending packets are
sent first.

6 years agoFixes/improvements to UDPConnection, still WIP
Stephen Seo [Thu, 21 Feb 2019 06:40:30 +0000 (15:40 +0900)]
Fixes/improvements to UDPConnection, still WIP

Need to implement threaded update properly.

6 years agoAdd push_..._realloc to Deque
Stephen Seo [Thu, 21 Feb 2019 03:34:35 +0000 (12:34 +0900)]
Add push_..._realloc to Deque

6 years agoImpl add to send-queue and recv callbacks, WIP
Stephen Seo [Wed, 20 Feb 2019 06:13:57 +0000 (15:13 +0900)]
Impl add to send-queue and recv callbacks, WIP

Still not finished, need to set up the thread to send queued packets and
receive packets safely.

Also need to add to Deque (see TODO comment).

6 years agoFix error log message
Stephen Seo [Tue, 19 Feb 2019 04:31:26 +0000 (13:31 +0900)]
Fix error log message

6 years agoFix handling of timed out packets
Stephen Seo [Tue, 19 Feb 2019 04:28:16 +0000 (13:28 +0900)]
Fix handling of timed out packets

6 years agoMore impl of UDPConnection
Stephen Seo [Mon, 18 Feb 2019 07:32:50 +0000 (16:32 +0900)]
More impl of UDPConnection

Still WIP but almost finished

6 years agoMerge branch 'hm_linkedlist'
Stephen Seo [Mon, 18 Feb 2019 03:32:57 +0000 (12:32 +0900)]
Merge branch 'hm_linkedlist'

HashMap updated to use linked lists instead of Deques to store entries.

6 years agoUpdate UDPConnection to use updated HashMap
Stephen Seo [Mon, 18 Feb 2019 03:31:42 +0000 (12:31 +0900)]
Update UDPConnection to use updated HashMap

6 years agoUpdate unit tests for HashMap, fixes
Stephen Seo [Mon, 18 Feb 2019 03:24:34 +0000 (12:24 +0900)]
Update unit tests for HashMap, fixes

6 years agoChange HashMap to use llists, testing required
Stephen Seo [Mon, 18 Feb 2019 03:13:49 +0000 (12:13 +0900)]
Change HashMap to use llists, testing required

6 years agoWIP change to linked list buckets instead of deque
Stephen Seo [Sat, 16 Feb 2019 10:00:45 +0000 (19:00 +0900)]
WIP change to linked list buckets instead of deque

6 years agoMinor fix to unit test for HashMap
Stephen Seo [Fri, 15 Feb 2019 08:00:10 +0000 (17:00 +0900)]
Minor fix to unit test for HashMap

6 years agoMinor fix to HashMap_itercall(), add to unit test
Stephen Seo [Fri, 15 Feb 2019 05:43:16 +0000 (14:43 +0900)]
Minor fix to HashMap_itercall(), add to unit test

6 years agoAdd itercall() to HashMap, more work on UDPC
Stephen Seo [Fri, 15 Feb 2019 04:52:38 +0000 (13:52 +0900)]
Add itercall() to HashMap, more work on UDPC

6 years agoFixes to Unit Test, attempt to improve hash use
Stephen Seo [Wed, 13 Feb 2019 08:49:24 +0000 (17:49 +0900)]
Fixes to Unit Test, attempt to improve hash use

6 years agoAdd unit tests for HashMap, fix HashMap
Stephen Seo [Wed, 13 Feb 2019 05:45:29 +0000 (14:45 +0900)]
Add unit tests for HashMap, fix HashMap

6 years agoAdd a few fns, fix docs to HashMap
Stephen Seo [Wed, 13 Feb 2019 04:38:27 +0000 (13:38 +0900)]
Add a few fns, fix docs to HashMap

6 years agoAllow duplicate keys in HashMap
Stephen Seo [Tue, 12 Feb 2019 08:40:52 +0000 (17:40 +0900)]
Allow duplicate keys in HashMap

6 years agoRevert "Change formatting in HashMap.c"
Stephen Seo [Tue, 12 Feb 2019 08:39:07 +0000 (17:39 +0900)]
Revert "Change formatting in HashMap.c"

This reverts commit 1dba20ba0de90ef67730060ae3d9819bc77ae1b8.

6 years agoChange formatting in HashMap.c
Stephen Seo [Tue, 12 Feb 2019 08:37:58 +0000 (17:37 +0900)]
Change formatting in HashMap.c

6 years agoChange HashMap_insert to replace existing same key
Stephen Seo [Mon, 11 Feb 2019 02:39:09 +0000 (11:39 +0900)]
Change HashMap_insert to replace existing same key

6 years agoAdd support for zero-size unitSize in HashMap
Stephen Seo [Mon, 11 Feb 2019 02:33:35 +0000 (11:33 +0900)]
Add support for zero-size unitSize in HashMap

6 years agoAdd HashMap realloc/clear, fixes
Stephen Seo [Mon, 11 Feb 2019 02:23:08 +0000 (11:23 +0900)]
Add HashMap realloc/clear, fixes

6 years agoFix HashMap_insert
Stephen Seo [Fri, 8 Feb 2019 03:55:20 +0000 (12:55 +0900)]
Fix HashMap_insert

6 years agoFix HashMap_destroy
Stephen Seo [Fri, 8 Feb 2019 03:48:15 +0000 (12:48 +0900)]
Fix HashMap_destroy

6 years agoAdd docs to HashMap
Stephen Seo [Thu, 7 Feb 2019 07:20:57 +0000 (16:20 +0900)]
Add docs to HashMap

6 years agoChange HM to use overflow and individual buckets
Stephen Seo [Thu, 7 Feb 2019 02:50:28 +0000 (11:50 +0900)]
Change HM to use overflow and individual buckets

6 years agoAdd some impl to WIP HashMap
Stephen Seo [Mon, 4 Feb 2019 08:45:37 +0000 (17:45 +0900)]
Add some impl to WIP HashMap

6 years agoBegin work on HashMap, minor fixes
Stephen Seo [Mon, 4 Feb 2019 08:21:49 +0000 (17:21 +0900)]
Begin work on HashMap, minor fixes

6 years agoAdd hash macro fn
Stephen Seo [Mon, 4 Feb 2019 07:57:29 +0000 (16:57 +0900)]
Add hash macro fn

6 years agoFix UDPC_destroy, WIP impl of recieving packets
Stephen Seo [Mon, 4 Feb 2019 06:33:44 +0000 (15:33 +0900)]
Fix UDPC_destroy, WIP impl of recieving packets

6 years agoMinor fix to test of internal atostr function
Stephen Seo [Fri, 1 Feb 2019 10:32:31 +0000 (19:32 +0900)]
Minor fix to test of internal atostr function

Also check ending of null terminated string of returned buffer.

6 years agoAdd test for internal atostr function
Stephen Seo [Fri, 1 Feb 2019 10:31:31 +0000 (19:31 +0900)]
Add test for internal atostr function

6 years agoAdd error logging capability
Stephen Seo [Fri, 1 Feb 2019 10:22:04 +0000 (19:22 +0900)]
Add error logging capability

Need to test internal atostr function.

6 years agoAdd some impl of UDPConnection (still WIP)
Stephen Seo [Thu, 31 Jan 2019 10:44:32 +0000 (19:44 +0900)]
Add some impl of UDPConnection (still WIP)

6 years agoMore work on Deque, UDPConnection
Stephen Seo [Thu, 31 Jan 2019 03:16:01 +0000 (12:16 +0900)]
More work on Deque, UDPConnection

6 years agoAdd fn to Deque, remove at index
Stephen Seo [Wed, 30 Jan 2019 07:40:13 +0000 (16:40 +0900)]
Add fn to Deque, remove at index

remove replaces data at index with data at end

6 years agoSome work on UDPC
Stephen Seo [Wed, 30 Jan 2019 06:46:52 +0000 (15:46 +0900)]
Some work on UDPC

6 years agoMinor fixes to UnitTest, Defines header
Stephen Seo [Tue, 29 Jan 2019 05:50:12 +0000 (14:50 +0900)]
Minor fixes to UnitTest, Defines header

6 years agoChange init to return ptr, some error handling
Stephen Seo [Tue, 29 Jan 2019 02:53:39 +0000 (11:53 +0900)]
Change init to return ptr, some error handling

6 years agoChange Deque_destroy to take a ptr, not ptr of ptr
Stephen Seo [Mon, 28 Jan 2019 06:10:04 +0000 (15:10 +0900)]
Change Deque_destroy to take a ptr, not ptr of ptr

6 years agoChange Deque init to return pointer
Stephen Seo [Sun, 27 Jan 2019 09:30:35 +0000 (18:30 +0900)]
Change Deque init to return pointer

6 years agoAdd unit tests, some fixes to Deque.
Stephen Seo [Sun, 27 Jan 2019 06:09:38 +0000 (15:09 +0900)]
Add unit tests, some fixes to Deque.

6 years agoFinish impl of Deque, testing required
Stephen Seo [Sat, 26 Jan 2019 11:44:31 +0000 (20:44 +0900)]
Finish impl of Deque, testing required

6 years agoSome more work on UDPC, WIP Deque
Stephen Seo [Sat, 26 Jan 2019 10:11:12 +0000 (19:11 +0900)]
Some more work on UDPC, WIP Deque

6 years agoRename PLATFORM macro to "namespace" UDPC_
Stephen Seo [Sat, 26 Jan 2019 07:49:54 +0000 (16:49 +0900)]
Rename PLATFORM macro to "namespace" UDPC_

6 years agoAdd some init/destruct stuff, thread stuff too
Stephen Seo [Sat, 26 Jan 2019 07:22:31 +0000 (16:22 +0900)]
Add some init/destruct stuff, thread stuff too