Pyrogenesis  trunk
Namespaces | Functions
JSInterface_Network.cpp File Reference
#include "precompiled.h"
#include "JSInterface_Network.h"
#include "lib/external_libraries/enet.h"
#include "lib/external_libraries/libsdl.h"
#include "lib/types.h"
#include "lobby/IXmppClient.h"
#include "network/NetClient.h"
#include "network/NetMessage.h"
#include "network/NetServer.h"
#include "network/StunClient.h"
#include "ps/CLogger.h"
#include "ps/CStr.h"
#include "ps/Game.h"
#include "ps/GUID.h"
#include "ps/Hashing.h"
#include "ps/Pyrogenesis.h"
#include "ps/Util.h"
#include "scriptinterface/FunctionWrapper.h"
#include "scriptinterface/StructuredClone.h"
#include "scriptinterface/JSON.h"
#include "third_party/encryption/pkcs5_pbkdf2.h"
Include dependency graph for JSInterface_Network.cpp:

Namespaces

 JSI_Network
 

Functions

u16 JSI_Network::GetDefaultPort ()
 
bool JSI_Network::IsNetController ()
 
bool JSI_Network::HasNetServer ()
 
bool JSI_Network::HasNetClient ()
 
void JSI_Network::StartNetworkHost (const ScriptRequest &rq, const CStrW &playerName, const u16 serverPort, bool useSTUN, const CStr &password, bool storeReplay)
 
void JSI_Network::StartNetworkJoin (const ScriptRequest &rq, const CStrW &playerName, const CStr &serverAddress, u16 serverPort, bool storeReplay)
 
void JSI_Network::StartNetworkJoinLobby (const CStrW &playerName, const CStr &hostJID, const CStr &password)
 Requires XmppClient to send iq request to the server to get server's ip and port based on passed password. More...
 
void JSI_Network::DisconnectNetworkGame ()
 
CStr JSI_Network::GetPlayerGUID ()
 
JS::Value JSI_Network::PollNetworkClient (const ScriptInterface &guiInterface)
 
void JSI_Network::SendGameSetupMessage (const ScriptInterface &scriptInterface, JS::HandleValue attribs1)
 
void JSI_Network::AssignNetworkPlayer (int playerID, const CStr &guid)
 
void JSI_Network::KickPlayer (const CStrW &playerName, bool ban)
 
void JSI_Network::SendNetworkChat (const CStrW &message)
 
void JSI_Network::SendNetworkReady (int message)
 
void JSI_Network::ClearAllPlayerReady ()
 
void JSI_Network::StartNetworkGame (const ScriptInterface &scriptInterface, JS::HandleValue attribs1)
 
void JSI_Network::SetTurnLength (int length)
 
void JSI_Network::RegisterScriptFunctions (const ScriptRequest &rq)
 Registers the functions of the JavaScript interface for internationalization and localization into the specified JavaScript context. More...