#include <C4Config.h>
Public Member Functions | |
void | CompileFunc (StdCompiler *compiler) |
const char * | GetLeagueServerAddress () |
const char * | GetModDatabaseServerAddress () |
void | CheckPortsForCollisions () |
void | SetLeagueLoginData (const char *server_name, const char *player_name, const char *account, const char *login_token) |
bool | GetLeagueLoginData (const char *server_name, const char *player_name, StdStrBuf *account, StdStrBuf *login_token) const |
Public Attributes | |
int32_t | ControlRate |
int32_t | ControlPreSend |
int32_t | Lobby |
int32_t | NoRuntimeJoin |
int32_t | NoReferenceRequest |
int32_t | MaxResSearchRecursion |
char | WorkPath [CFG_MaxString+1] |
ValidatedStdCopyStrBuf< C4InVal::VAL_Comment > | Comment |
int32_t | MasterServerSignUp |
int32_t | MasterServerActive |
int32_t | MasterKeepPeriod |
int32_t | MasterReferencePeriod |
int32_t | LeagueServerSignUp |
int32_t | UseAlternateServer |
int32_t | PortTCP |
int32_t | PortUDP |
int32_t | PortDiscovery |
int32_t | PortRefServer |
int32_t | EnableUPnP |
int32_t | ControlMode |
ValidatedStdCopyStrBuf< C4InVal::VAL_NameAllowEmpty > | Nick |
int32_t | MaxLoadFileSize |
char | LastPassword [CFG_MaxString+1] |
char | AlternateServerAddress [CFG_MaxString+1] |
char | PuncherAddress [CFG_MaxString+1] |
StdCopyStrBuf | LastLeagueServer |
StdCopyStrBuf | LastLeaguePlayerName |
StdCopyStrBuf | LastLeagueAccount |
StdCopyStrBuf | LastLeagueLoginToken |
int32_t | UseAlternateModDatabaseServer |
char | AlternateModDatabaseServerAddress [CFG_MaxString+1] |
int32_t | AsyncMaxWait |
int32_t | PacketLogging |
Definition at line 136 of file C4Config.h.
void C4ConfigNetwork::CheckPortsForCollisions | ( | ) |
Definition at line 685 of file C4Config.cpp.
References C4NetStdPortDiscovery, C4NetStdPortRefServer, C4NetStdPortTCP, C4NetStdPortUDP, LogSilentF(), PortDiscovery, PortRefServer, PortTCP, and PortUDP.
Referenced by C4Network2::InitNetIO().
void C4ConfigNetwork::CompileFunc | ( | StdCompiler * | compiler | ) |
Definition at line 159 of file C4Config.cpp.
References AlternateModDatabaseServerAddress, AlternateServerAddress, AsyncMaxWait, C4NetStdPortDiscovery, C4NetStdPortRefServer, C4NetStdPortTCP, C4NetStdPortUDP, Comment, ControlMode, ControlPreSend, ControlRate, EnableUPnP, LastLeagueAccount, LastLeagueLoginToken, LastLeaguePlayerName, LastLeagueServer, LastPassword, LeagueServerSignUp, Lobby, MasterKeepPeriod, MasterReferencePeriod, MasterServerActive, MasterServerSignUp, MaxLoadFileSize, MaxResSearchRecursion, mkNamingAdapt(), mkParAdapt(), Nick, NoReferenceRequest, NoRuntimeJoin, PacketLogging, PortDiscovery, PortRefServer, PortTCP, PortUDP, PuncherAddress, StdCompiler::RCT_All, s, UseAlternateModDatabaseServer, UseAlternateServer, StdCompiler::Value(), and WorkPath.
bool C4ConfigNetwork::GetLeagueLoginData | ( | const char * | server_name, |
const char * | player_name, | ||
StdStrBuf * | account, | ||
StdStrBuf * | login_token | ||
) | const |
Definition at line 712 of file C4Config.cpp.
References StdStrBuf::Copy(), LastLeagueAccount, LastLeagueLoginToken, LastLeaguePlayerName, and LastLeagueServer.
Referenced by C4Network2::LeaguePlrAuth().
const char * C4ConfigNetwork::GetLeagueServerAddress | ( | ) |
Definition at line 661 of file C4Config.cpp.
References AlternateServerAddress, and UseAlternateServer.
Referenced by C4Network2::InitLeague().
const char * C4ConfigNetwork::GetModDatabaseServerAddress | ( | ) |
Definition at line 675 of file C4Config.cpp.
References AlternateModDatabaseServerAddress, and UseAlternateModDatabaseServer.
void C4ConfigNetwork::SetLeagueLoginData | ( | const char * | server_name, |
const char * | player_name, | ||
const char * | account, | ||
const char * | login_token | ||
) |
Definition at line 702 of file C4Config.cpp.
References StdStrBuf::Copy(), LastLeagueAccount, LastLeagueLoginToken, LastLeaguePlayerName, and LastLeagueServer.
Referenced by C4Network2::LeaguePlrAuth().
char C4ConfigNetwork::AlternateModDatabaseServerAddress[CFG_MaxString+1] |
Definition at line 164 of file C4Config.h.
Referenced by C4StartupOptionsDlg::C4StartupOptionsDlg(), CompileFunc(), and GetModDatabaseServerAddress().
char C4ConfigNetwork::AlternateServerAddress[CFG_MaxString+1] |
Definition at line 159 of file C4Config.h.
Referenced by C4StartupOptionsDlg::C4StartupOptionsDlg(), CompileFunc(), and GetLeagueServerAddress().
int32_t C4ConfigNetwork::AsyncMaxWait |
Definition at line 170 of file C4Config.h.
Referenced by CompileFunc(), and C4GameControlNetwork::PackCompleteCtrl().
ValidatedStdCopyStrBuf<C4InVal::VAL_Comment> C4ConfigNetwork::Comment |
Definition at line 146 of file C4Config.h.
Referenced by CompileFunc(), C4Network2Reference::InitLocal(), C4GameOptionButtons::OnBtnComment(), C4GameOptionButtons::OnCommentSet(), C4Application::ParseCommandLine(), and C4MessageInput::ProcessCommand().
int32_t C4ConfigNetwork::ControlMode |
Definition at line 155 of file C4Config.h.
Referenced by CompileFunc(), and C4Network2::InitHost().
int32_t C4ConfigNetwork::ControlPreSend |
Definition at line 140 of file C4Config.h.
Referenced by CompileFunc().
int32_t C4ConfigNetwork::ControlRate |
Definition at line 139 of file C4Config.h.
Referenced by CompileFunc(), C4GameControl::Default(), and C4GameParameters::Load().
int32_t C4ConfigNetwork::EnableUPnP |
Definition at line 154 of file C4Config.h.
Referenced by C4StartupOptionsDlg::C4StartupOptionsDlg(), CompileFunc(), and C4Network2::InitNetIO().
StdCopyStrBuf C4ConfigNetwork::LastLeagueAccount |
Definition at line 161 of file C4Config.h.
Referenced by CompileFunc(), GetLeagueLoginData(), and SetLeagueLoginData().
StdCopyStrBuf C4ConfigNetwork::LastLeagueLoginToken |
Definition at line 161 of file C4Config.h.
Referenced by CompileFunc(), GetLeagueLoginData(), and SetLeagueLoginData().
StdCopyStrBuf C4ConfigNetwork::LastLeaguePlayerName |
Definition at line 161 of file C4Config.h.
Referenced by CompileFunc(), GetLeagueLoginData(), and SetLeagueLoginData().
StdCopyStrBuf C4ConfigNetwork::LastLeagueServer |
Definition at line 161 of file C4Config.h.
Referenced by CompileFunc(), GetLeagueLoginData(), and SetLeagueLoginData().
char C4ConfigNetwork::LastPassword[CFG_MaxString+1] |
Definition at line 158 of file C4Config.h.
Referenced by CompileFunc(), C4GameOptionButtons::OnBtnPassword(), and C4GameOptionButtons::OnPasswordSet().
int32_t C4ConfigNetwork::LeagueServerSignUp |
Definition at line 151 of file C4Config.h.
Referenced by C4GameOptionButtons::C4GameOptionButtons(), CompileFunc(), C4Network2::InitLeague(), C4GameOptionButtons::OnBtnInternet(), C4GameOptionButtons::OnBtnLeague(), and C4Application::ParseCommandLine().
int32_t C4ConfigNetwork::Lobby |
Definition at line 141 of file C4Config.h.
Referenced by CompileFunc().
int32_t C4ConfigNetwork::MasterKeepPeriod |
Definition at line 149 of file C4Config.h.
Referenced by CompileFunc().
int32_t C4ConfigNetwork::MasterReferencePeriod |
Definition at line 150 of file C4Config.h.
Referenced by CompileFunc(), and C4Network2::LeagueUpdate().
int32_t C4ConfigNetwork::MasterServerActive |
Definition at line 148 of file C4Config.h.
Referenced by CompileFunc().
int32_t C4ConfigNetwork::MasterServerSignUp |
Definition at line 147 of file C4Config.h.
Referenced by C4GameOptionButtons::C4GameOptionButtons(), C4StartupNetDlg::C4StartupNetDlg(), CompileFunc(), C4Network2::InitLeague(), C4StartupNetDlg::OnBtnInternet(), C4GameOptionButtons::OnBtnInternet(), C4GameOptionButtons::OnBtnLeague(), and C4Application::ParseCommandLine().
int32_t C4ConfigNetwork::MaxLoadFileSize |
Definition at line 157 of file C4Config.h.
Referenced by CompileFunc(), and C4Network2Res::GetStandalone().
int32_t C4ConfigNetwork::MaxResSearchRecursion |
Definition at line 144 of file C4Config.h.
Referenced by CompileFunc(), and C4Network2Res::SetByCore().
ValidatedStdCopyStrBuf<C4InVal::VAL_NameAllowEmpty> C4ConfigNetwork::Nick |
Definition at line 156 of file C4Config.h.
Referenced by C4ChatControl::C4ChatControl(), C4StartupOptionsDlg::C4StartupOptionsDlg(), CompileFunc(), C4Config::Load(), C4StartupOptionsDlg::SaveConfig(), and C4ClientCore::SetLocal().
int32_t C4ConfigNetwork::NoReferenceRequest |
Definition at line 143 of file C4Config.h.
Referenced by CompileFunc().
int32_t C4ConfigNetwork::NoRuntimeJoin |
Definition at line 142 of file C4Config.h.
Referenced by C4Network2::AllowJoin(), CompileFunc(), C4Network2::DoLobby(), and C4Application::ParseCommandLine().
int32_t C4ConfigNetwork::PacketLogging |
Definition at line 171 of file C4Config.h.
Referenced by C4StartupOptionsDlg::C4StartupOptionsDlg(), CompileFunc(), and C4Network2IO::HandlePacket().
int32_t C4ConfigNetwork::PortDiscovery |
Definition at line 153 of file C4Config.h.
Referenced by C4StartupNetDlg::C4StartupNetDlg(), C4StartupOptionsDlg::C4StartupOptionsDlg(), CheckPortsForCollisions(), CompileFunc(), C4Network2::InitNetIO(), and C4Config::Load().
int32_t C4ConfigNetwork::PortRefServer |
Definition at line 153 of file C4Config.h.
Referenced by C4StartupOptionsDlg::C4StartupOptionsDlg(), CheckPortsForCollisions(), CompileFunc(), C4Network2::InitNetIO(), and C4Config::Load().
int32_t C4ConfigNetwork::PortTCP |
Definition at line 153 of file C4Config.h.
Referenced by C4Network2Client::AddAddrFromPuncher(), C4StartupOptionsDlg::C4StartupOptionsDlg(), CheckPortsForCollisions(), CompileFunc(), C4Network2::DrawStatus(), C4Network2::InitNetIO(), C4Config::Load(), and C4Application::ParseCommandLine().
int32_t C4ConfigNetwork::PortUDP |
Definition at line 153 of file C4Config.h.
Referenced by C4Network2Client::AddAddrFromPuncher(), C4StartupOptionsDlg::C4StartupOptionsDlg(), CheckPortsForCollisions(), CompileFunc(), C4Network2::DrawStatus(), C4Network2::InitNetIO(), C4Config::Load(), and C4Application::ParseCommandLine().
char C4ConfigNetwork::PuncherAddress[CFG_MaxString+1] |
Definition at line 160 of file C4Config.h.
Referenced by CompileFunc(), and C4Network2::InitHost().
int32_t C4ConfigNetwork::UseAlternateModDatabaseServer |
Definition at line 163 of file C4Config.h.
Referenced by C4StartupOptionsDlg::C4StartupOptionsDlg(), CompileFunc(), and GetModDatabaseServerAddress().
int32_t C4ConfigNetwork::UseAlternateServer |
Definition at line 152 of file C4Config.h.
Referenced by C4StartupOptionsDlg::C4StartupOptionsDlg(), CompileFunc(), GetLeagueServerAddress(), C4Network2Reference::getSortOrder(), and C4StartupNetListEntry::SetReference().
char C4ConfigNetwork::WorkPath[CFG_MaxString+1] |
Definition at line 145 of file C4Config.h.
Referenced by CompileFunc(), C4Network2ResList::CreateNetworkFolder(), and C4Network2Res::SetByCore().