1a39039065
Fix received packet storing unnecessary header
...
Added rtt (uint16_t) to UDPC_PacketInfo.
2019-12-27 13:35:28 +09:00
fdd57bc538
Minor additions/fixes to doxygen-style docs
2019-12-22 22:50:50 +09:00
1af44db109
Minor refactorings
...
UDPC_update now locks the mutex to keep it thread-safe.
2019-12-19 11:39:34 +09:00
ffcc30bc64
Minor fixes
2019-12-18 14:34:53 +09:00
4b36d05ccc
Minor fixes, improvements
...
When UDPC_ConnectionId is initialized, all of its bytes are now zeroed
out.
2019-12-18 14:20:29 +09:00
5ec344b733
Add way to get connection queued size
...
Requires locking the mutex for access to conMap.
2019-12-18 13:47:46 +09:00
62ac6e779f
Bug fixes
...
Fixed not setting output int to 0 to specify zero connections when
returning connection IDs.
2019-12-17 20:58:44 +09:00
dbdade3b00
Impl disc. request (untested), del make_unique
2019-12-17 20:05:56 +09:00
a4efd98890
Replace "poor man's optional" with std::unique_ptr
2019-12-17 19:12:54 +09:00
aa59777f99
Fix create_id_easy not parsing ipv4 addr correctly
2019-12-17 12:52:10 +09:00
ece17e1aca
Drop support from C++17 to C++11
...
std::optional replaced with Entry in TSLQueue (which is basically a poor
man's optional).
2019-12-11 20:00:48 +09:00
7c444cb460
Impl auth-policy for handling with(out) auth
2019-12-09 21:27:58 +09:00
d94b44e4de
More documentation, fix constants to be #define'd
2019-12-06 20:49:30 +09:00
6742e06596
More work on Doxygen style documentation
2019-12-04 13:08:30 +09:00
feb859d745
Begin doxygen-style documentation WIP
2019-11-27 20:26:40 +09:00
69256839ac
Minor fixes/refactorings
2019-11-27 20:12:57 +09:00
04fa5ca017
Add is_valid_context(), fixes/refactorings
2019-11-27 19:47:51 +09:00
8d1dbead20
Add set_libsodium_key_easy(), fixes/refactorings
2019-11-27 19:41:38 +09:00
6b14d86822
Fixes for setting pub/sec keys
...
Added more to NetworkTest to test new changes.
2019-11-21 15:15:05 +09:00
c24273ea65
Add unset_libsodium_keys()
...
Still untested
2019-11-21 12:23:40 +09:00
240ed9821f
Add set peer_pk, sk/pk, start/stop threaded update
...
Note, this code is UNTESTED.
2019-11-19 20:55:20 +09:00
4cfe35ecd1
libsodium support is now optional
...
Packet struture has been changed to support UDPC without libsodium
sending packets to UDPC with libsodium.
2019-11-18 17:37:03 +09:00
f2b4672318
Add way to specify sleep time for threaded update
2019-11-13 14:06:48 +09:00
f9e1bca4c1
Add UDPC_create_id_easy
...
UDPC_create_id_easy will detect if the input addr string is link local
or not, and will create the ipv6 address based on it.
2019-11-13 12:15:12 +09:00
90b36e3061
Convert NetworkTest to C from C++
2019-11-13 11:47:53 +09:00
7b5cf3b6f8
Add events, refactorings
...
Added event system to lessen the use of the main mutex and instead use
thread safe data structures (TSLQueue). Also can enable and check events
during execution (connect, disconnect, good mode, bad mode).
Fixes and refactorings.
2019-11-11 16:08:51 +09:00
d86b7e4e1d
Fix use of addr/socket types
2019-11-11 13:37:51 +09:00
00c1be07dc
Replace c_impl, remove rust_binding, with cpp_impl
2019-11-11 13:08:36 +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