Commit Graph
6 Commits
Author SHA1 Message Date
Fletcher Dunn c178029f02 Rewrite reliability layer and wire format.
This features a robust ack model inspired by Google QUIC,
which allows for minimal retransmission of reliable data.
It should also allow for the rate calculations to be done
by the sender, but that has been temporarily broken.

The wire framing has also been significantly optimized.
2018-04-17 16:18:25 -07:00
Steven Noonan 5ed8fcac96 connection_test: silence warning about unreachable code
Signed-off-by: Steven Noonan <steven@valvesoftware.com>
2018-04-04 13:32:29 -07:00
Steven Noonan 24908b7c9d connection_test: eliminate warning about float/double mismatch
We explicitly annotate the literal as a float, but the result of
uniform_real_distribution is a double.

Signed-off-by: Steven Noonan <steven@valvesoftware.com>
2018-04-04 13:31:22 -07:00
Steven Noonan 415739c29d connection_test: mark functions and objects as static
This avoids warnings about missing forward declarations.

Signed-off-by: Steven Noonan <steven@valvesoftware.com>
2018-04-04 13:30:38 -07:00
Steven Noonan 39b5dbd0b9 connection_test: remove unused macro
We don't bind the client port, so this was probably a copy/paste from
some other project.

Signed-off-by: Steven Noonan <steven@valvesoftware.com>
2018-04-04 13:29:13 -07:00
Fletcher Dunn cd20520740 Added unit test. Fixed a bunch of hygiene issues.
The test is compiling, but not fully working.
NOTE: THIS IS UNIT TEST, NOT A TYPICAL SAMPLE OF HOW TO USE THE LIBRARY, PLEASE DON'T CUT AND PASTE.  If we have time we'll add a better sample code with a proper server and client.
Also renamed some "SteamDatagram" things (which is the name used to refer to the relay network, not included with the opensource code) to "SteamnetworkingSockets".
Remove include of platform.h in a public header.  That's not supposed to be visible or needed outside of compiling the library.
Added a stub for ISteamNetworkingUtils.  The only thing that's available in the opensource library is the timestamp function.  In the Steamworks version there are utilities for reasoning about the relay network and estimating ping between two locations.
2018-04-03 12:36:43 -07:00