MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / JoinSession

Method JoinSession

engine/Poseidon/Network/NetworkMisc.cpp:1263–1284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1261 info.badTag = stricmp(info.versionTag, GetVersionTag()) != 0;
1262 }
1263}
1264
1265bool NetworkManager::ProbeRemoteHosts(AutoArray<RemoteHostAddress>& hosts, int port)
1266{
1267 if (!_sessionEnum)
1268 {
1269 return false;
1270 }
1271
1272 _lastEnumHosts = Glob.uiTime;
1273 return _sessionEnum->StartEnumHosts(RString(), port, &hosts);
1274}
1275
1276void CheckMPVersion(SessionInfo& info)
1277{
1278 info.badActualVersion = info.actualVersion < MP_VERSION_REQUIRED;
1279 info.badRequiredVersion = MP_VERSION_ACTUAL < info.requiredVersion;
1280}
1281
1282RString NetworkManager::IPToGUID(RString ip, int port)
1283{
1284 if (_sessionEnum)
1285 {
1286 return _sessionEnum->IPToGUID(ip, port);
1287 }

Callers 3

CreateClientFunction · 0.80
CreateClientDeferredFunction · 0.80
OnButtonClickedMethod · 0.80

Calls 7

ProgressStartFunction · 0.85
LocalizeStringFunction · 0.85
ProgressFinishFunction · 0.85
PauseCheckingAliveMethod · 0.80
GetConnectResultMethod · 0.80
ResumeCheckingAliveMethod · 0.80
IsValidMethod · 0.45

Tested by

no test coverage detected