Closed laurirasanen closed 5 years ago
Looks like SteamClient.Init
needs to be called before calling SteamNetworkingSockets.CreateNormalSocket
, works as expected after this.
Caused by SteamNetworkingSockets.InstallEvents
only being called in SteamClient.Init
and not in SteamServer.Init
. Also the server bool parameter in SteamNetConnectionStatusChangedCallback_t.Install
is always set to false
.
Created pull request #269 to make use of the boolean and call SteamNetworkingSockets.InstallEvents
in SteamServer.Init
as well.
Basic listen server using SteamNetworkingSockets results in connection error in 2.0 alpha 2 release. Windows firewall and AV disabled.
Attempts to connect for ~10 seconds and then spews out the following in ConnectionInterface.Connection.DetailedStatus():
Code:
Ifdef'ing SERVER and CLIENT separately and running the server in batch mode gives some extra info: