c37909bde3
Add helpers converting network-order (big-endian)
2020-01-16 20:28:42 +09:00
f588d409c9
Truncate "UDPConnection" to "UDPC"
2020-01-09 16:57:01 +09:00
7996bd5c36
Client on connect fail now returns FAIL_CONNECT
...
Previously, returned event was DISCONNECT. FAIL_CONNECT is a new event
enum value.
2020-01-05 14:49:37 +09:00
42fde9a2d0
Implement publickey whitelist (using libsodium)
...
Renamed "mutex" to "conMapMutex" since it is mainly used to lock access
to the connection map.
Removed UDPC_client_initiate_connection_pk() as publickey whitelisting
replaces its functionality.
2020-01-02 20:54:32 +09:00
1a39039065
Fix received packet storing unnecessary header
...
Added rtt (uint16_t) to UDPC_PacketInfo.
2019-12-27 13:35:28 +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
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
6b14d86822
Fixes for setting pub/sec keys
...
Added more to NetworkTest to test new changes.
2019-11-21 15:15:05 +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
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
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
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
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
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
29e3940c14
Add push_..._realloc to Deque
2019-02-21 12:34:35 +09:00
40f4df0fba
Update unit tests for HashMap, fixes
2019-02-18 12:24:34 +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
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
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
48cf70ef49
More work on Deque, UDPConnection
2019-01-31 12:16:01 +09:00
c0046e5160
Add fn to Deque, remove at index
...
remove replaces data at index with data at end
2019-01-30 16:40:13 +09:00
bfc704d429
Minor fixes to UnitTest, Defines header
2019-01-29 14:50:12 +09:00
a27ffa8413
Change Deque_destroy to take a ptr, not ptr of ptr
2019-01-28 15:10:04 +09:00
62c1cad3da
Change Deque init to return pointer
2019-01-27 18:30:35 +09:00
599ac8a23e
Add unit tests, some fixes to Deque.
2019-01-27 15:09:38 +09:00