Commit graph

22 commits

Author SHA1 Message Date
7c889eee6a Fixes and improvements (add use of TSLQueue)
Replace "unsigned long long" in TSLQueue with "unsigned long" to keep
compatibility with C.

Add top_and_pop_and_rsize() to TSLQueue.

Fix log levels in UDPC.

Replace TSQueue with TSLQueue in UDPC_Context.
Also fix NetworkTest with TSLQueue related changes.
2019-11-06 14:39:09 +09:00
b11d87ca12 Rework sendPkts (sending queue)
Changed sendPkts in ConnectionData to std::deque, added a TSQueue
cSendPkts to Context. Queued packets will be moved to corresponding
ConnectionData instances during update, dropping with a warning those
where a connection does not exist.

Minor other fixes.

Some additions to TSQueue.
2019-09-27 20:19:48 +09:00
328d44fbb6 Add support for MINGW compiler 2019-09-21 12:15:49 +09:00
5a3c7cd9a0 Many fixes, including sending packets with payload
Implemented UDPC_get_received
Added UDPC_get_list_connected and UDPC_free_list_connected.
2019-09-20 14:02:41 +09:00
71f7bc4977 Fix Windows support 2019-09-19 12:23:15 +09:00
0e22357d55 Rename enum types to avoid name conflict 2019-09-19 10:58:19 +09:00
355f3b2bd0 Add support for link-local ipv6 addr 2019-09-18 17:35:14 +09:00
2bc6eeffe9 Impl NetworkTest, fixes and refactoring
Basic connections can now be tested with NetworkTest.
Also includes fixes to UDPC that now create a working connection.

TODO Fix client sending at good rate even in bad rate mode.
2019-09-17 20:33:47 +09:00
a642db53f0 Add support for UDPC_strtoa to accept ipv4 input
UDPC_strtoa can now return an ipv4-mapped ipv6 address given an ipv4
string. Also, added validation of input strings via regex.
2019-09-17 17:17:16 +09:00
255930db9a Replace ipv4 with ipv6
ipv6 also supports sending to ipv4.
2019-09-07 16:36:11 +09:00
150deb7e5c Expose ConnectionId to C interface, fixes
Removed UDPC:ConnectionIdentifier from UDPC_Defines.hpp and added
ConnectionId to UDPConnection.h, and replaced/fixed instances of the
older type.
2019-09-03 12:06:46 +09:00
ba5d9178dc Simpifly opaque struct handle to context 2019-08-30 12:11:07 +09:00
e8c07680a6 Remove already resolved TODO comment 2019-08-30 12:04:39 +09:00
fe41bbb764 Use opaque struct as handle in C interface, fix
Fixed log_impl_next.
2019-08-30 12:03:26 +09:00
d027b1703a Add client_initiate_connection fn, some fixes 2019-08-29 11:07:24 +09:00
f10521ec52 Impl drop all connections with specific addr
Fix UDPC_drop_connection that didn't fully cleanup connection data.

Added UDPC_drop_connection_addr fn that drops all connections with a
specific addr.
2019-08-28 16:38:14 +09:00
1382cc6b7c Store connections based on both addr and port
Previous implementation only stored based on addr only, preventing
connections from/to the same address but different ports.
2019-08-27 17:00:29 +09:00
f5cfbe41d5 Fix warnings, some impl, still WIP 2019-08-27 14:06:27 +09:00
7482fecb37 More impl: rtt and timepoint per sent pkt 2019-08-22 20:16:07 +09:00
5c4360cabe Some more work on cpp_impl (still WIP) 2019-07-25 20:51:08 +09:00
28d832a349 Invoke ALEFix 2019-06-06 16:42:07 +09:00
4b56bda4b1 Skeleton code set up for cpp impl 2019-06-06 16:02:48 +09:00