Commit graph

183 commits

Author SHA1 Message Date
ce4a8c56ac Allow rust_binding to build the C library 2019-04-22 17:54:37 +09:00
ad83caa6e5 Add new function to whitelist 2019-04-17 15:21:03 +09:00
e1d91a4b5e Move gitignore for c_impl to correct place 2019-04-17 15:16:23 +09:00
1eed614ded Add buildgen rust binding 2019-04-17 15:15:53 +09:00
a33004a4c9 Add function to drop connection to specific addr
Also added minor note about ctx->idMap
2019-04-17 15:15:19 +09:00
537fef9e8a Fix prepare_pkt function 2019-03-12 14:28:28 +09:00
bf3f3c334e Fix server ignoring first packet from client 2019-03-12 14:11:22 +09:00
78db1a58c7 Add HashMap keyed by id for quick id lookups 2019-03-12 13:49:14 +09:00
05ece7c626 Fix UDPC destruct order when using thread 2019-03-07 12:16:03 +09:00
c82fd10470 Fix mutex lock not being unlocked 2019-03-07 12:10:53 +09:00
1c24cc9311 Change isThreaded flag to be separate int 2019-03-07 12:01:21 +09:00
50f105ecfb Add get/set protocol id capability 2019-03-07 11:57:06 +09:00
44d1be6a23 Minor doc fix 2019-03-06 21:51:09 +09:00
1e5175d0d1 Fix const error strings 2019-03-06 21:50:13 +09:00
767e96e227 Add more documentation 2019-03-06 20:34:24 +09:00
fe13c407ba Add more documentation 2019-03-06 20:31:23 +09:00
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
2bd2e868b2 Change UDPConnection to set listen address
Add some documentation, fix NetworkTest with new change.
2019-03-06 19:53:15 +09:00
71fd812137 Minor fix to NetworkTest 2019-03-06 13:49:56 +09:00
4be79ace7c Fix received callback, minor change to NetworkTest 2019-03-06 13:39:54 +09:00
aab8cfe407 Fix threaded update 2019-03-05 12:56:05 +09:00
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