Commit graph

262 commits

Author SHA1 Message Date
0ff6bd13a7 Change NetworkTest to exit after disconnect 2019-03-05 12:11:57 +09:00
6597b552a7 Fix memory leaks 2019-03-05 12:07:03 +09:00
96bc9caf92 More fixes to UDPConnection 2019-03-04 19:28:05 +09:00
d35f081585 Fix new connections not being created 2019-03-04 19:17:55 +09:00
f8950fa08e Fix endianness of addr, minor fixes 2019-03-04 19:05:07 +09:00
9134079b8d More fixes 2019-03-04 18:17:28 +09:00
aa094224bc Fix NetworkTest 2019-03-04 17:56:40 +09:00
ec9c3399bf Fixes to NetworkTest 2019-03-04 17:48:32 +09:00
da9bd55e06 Add check for no pkt received (non-blocking) 2019-03-04 15:27:01 +09:00
d38c7ac105 Add NetworkTest executable
To be used to debug UDPConnection.
2019-03-04 15:20:22 +09:00
89afc58bc7 Add UDPC_strtoa 2019-03-04 15:05:21 +09:00
4776a2f202 More impl of UDPConnection
Add client initiate connection.
2019-03-04 15:04:16 +09:00
0f1e9c9aed Use locks on check_events for threaded case 2019-03-04 11:40:34 +09:00
3b4ae6e7dd 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.
2019-03-04 11:32:44 +09:00
d6f5653048 Fixes/improvements to UDPConnection, still WIP
Need to implement threaded update properly.
2019-02-21 15:40:30 +09:00
29e3940c14 Add push_..._realloc to Deque 2019-02-21 12:34:35 +09:00
69edca40f8 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).
2019-02-20 15:13:57 +09:00
629abf6d8e Fix error log message 2019-02-19 13:31:26 +09:00
4e9929d7ba Fix handling of timed out packets 2019-02-19 13:28:16 +09:00
4ac65ab6de More impl of UDPConnection
Still WIP but almost finished
2019-02-18 16:32:50 +09:00
f691af58ab Merge branch 'hm_linkedlist'
HashMap updated to use linked lists instead of Deques to store entries.
2019-02-18 12:32:57 +09:00
84791a5399 Update UDPConnection to use updated HashMap 2019-02-18 12:31:42 +09:00
40f4df0fba Update unit tests for HashMap, fixes 2019-02-18 12:24:34 +09:00
2f794beede Change HashMap to use llists, testing required 2019-02-18 12:13:49 +09:00
bb301d84e9 WIP change to linked list buckets instead of deque 2019-02-16 19:00:45 +09:00
6476617b1b Minor fix to unit test for HashMap 2019-02-15 17:00:10 +09:00
d0ab9edb20 Minor fix to HashMap_itercall(), add to unit test 2019-02-15 14:43:16 +09:00
44dd293a4b Add itercall() to HashMap, more work on UDPC 2019-02-15 13:52:38 +09:00
f1a13cde5c Fixes to Unit Test, attempt to improve hash use 2019-02-13 17:49:24 +09:00
1bab7694cf Add unit tests for HashMap, fix HashMap 2019-02-13 14:45:29 +09:00
e995c877c4 Add a few fns, fix docs to HashMap 2019-02-13 13:38:36 +09:00
c335b280c9 Allow duplicate keys in HashMap 2019-02-12 17:40:52 +09:00
6801cc9744 Revert "Change formatting in HashMap.c"
This reverts commit 1dba20ba0d.
2019-02-12 17:39:07 +09:00
1dba20ba0d Change formatting in HashMap.c 2019-02-12 17:37:58 +09:00
49f46e7ce4 Change HashMap_insert to replace existing same key 2019-02-11 11:39:09 +09:00
3faae3025e Add support for zero-size unitSize in HashMap 2019-02-11 11:33:35 +09:00
164a35fbd7 Add HashMap realloc/clear, fixes 2019-02-11 11:23:08 +09:00
de0a877c70 Fix HashMap_insert 2019-02-08 12:55:20 +09:00
8af6ff500d Fix HashMap_destroy 2019-02-08 12:48:15 +09:00
eb9eb17a14 Add docs to HashMap 2019-02-07 16:20:57 +09:00
6800caf68a Change HM to use overflow and individual buckets 2019-02-07 11:50:28 +09:00
645a109ecf Add some impl to WIP HashMap 2019-02-04 17:45:37 +09:00
a0134b7cb3 Begin work on HashMap, minor fixes 2019-02-04 17:21:49 +09:00
2d7d27722c Add hash macro fn 2019-02-04 16:57:29 +09:00
884a262f93 Fix UDPC_destroy, WIP impl of recieving packets 2019-02-04 15:33:44 +09:00
f0e82c7488 Minor fix to test of internal atostr function
Also check ending of null terminated string of returned buffer.
2019-02-01 19:32:31 +09:00
f6dcf53a35 Add test for internal atostr function 2019-02-01 19:31:31 +09:00
faba06a2b6 Add error logging capability
Need to test internal atostr function.
2019-02-01 19:22:04 +09:00
ff31b0f604 Add some impl of UDPConnection (still WIP) 2019-01-31 19:44:32 +09:00
48cf70ef49 More work on Deque, UDPConnection 2019-01-31 12:16:01 +09:00