Commit Graph
12 Commits
Author SHA1 Message Date
Levent 30ec24294f TURN server configuration implemented. 2021-10-04 11:56:22 -07:00
Fletcher Dunn a0f7110104 Fix compiler warnings in test_p2p
P4:6653437
2021-07-06 15:35:34 -07:00
Fletcher Dunn ae52d2d0ce Refactor custom signaling
Removed the word "custom" from the namesofinterfacesthatwerealreadyverylong.

Added k_ESteamNetworkingConfig_Callback_CreateConnectionSignaling, which is
a mechanism for connections that require signaling to be iniated locally.
This is used by ISteamnetwrokingSockets::ConnectP2P and connections created
using the ISteamNetworkingMessages interface....which has been added.

These changes address issue #137 and bring the opensource code more in
line with Steamworks version.

Delete the define STEAMNETWORKINGSOCKETS_HAS_DEFAULT_P2P_SIGNALING.  "Default
signaling" is a thing that can exist on any platform, and can only be determined
at runtime.  Most places that were using this actually should have been
checking STEAMNETWORKINGSOCKETS_ENABLE_STEAMNETWORKINGMESSAGES anyway, and
those two defines were equivalent in practice.
STEAMNETWORKINGSOCKETS_ENABLE_STEAMNETWORKINGMESSAGES will be defined by default.
I could add a mechanism to disable it if anybody is relaly concerned about
code size.

(Also started some refactoring of the P2P listen sockets, to merge them
with hosted dedicated server listen sockets.  The goal is to enable a
way to connected to hosted dedicated servers without tickets.  That is a work
in progress, and also not relevant to the opensource code.)
2020-10-16 15:08:16 -07:00
Fletcher Dunn 22dbfad386 Add printf 2020-10-12 12:00:08 -07:00
Fletcher Dunn a419be3d1f Fix win32 compile 2020-09-02 20:21:04 -07:00
Fletcher Dunn 7bbb617cdd Finish P2P test
Have the clients exchange a message or two and then close the connection
gracefully.

I think this is good enough to claim victory on issue #133!
2020-09-02 11:30:00 -07:00
Fletcher Dunn b3350635fa Add/tweak spew 2020-09-02 09:57:21 -07:00
Fletcher Dunn d068d47264 Configure test to use google public STUN servers 2020-09-01 17:26:22 -07:00
Fletcher Dunn 2105b69b46 Improve P2P test.
Bail test when connection is closed.
Increase spew level for P2P-related stuff.
Added asserts
2020-09-01 15:29:26 -07:00
Fletcher Dunn 6c8dfe5fbc Use custom signaling path to connect 2020-09-01 06:23:52 -07:00
Fletcher Dunn b81bdd6ac7 P2P test mostly written.
I really need to be able to compile the webrtc code with my version
of cmake to make further progress on this.
2020-08-31 14:57:40 -07:00
Fletcher Dunn 1205aa893b Start P2P test. WIP.
Moved some common stuff out of test_connection.cpp to test_common.cpp.
2020-08-31 10:55:26 -07:00