Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <netclient.h>
Public Member Functions | |
NetClient () | |
void | Reinitialize () |
~NetClient () | |
int | connectLoad (string user, string pass, string &error) |
vector< string > * | loginSavedGame (int ship=0) |
void | startGame () |
void | SetConfigServerAddress (string &host, unsigned short &port) |
void | GetCurrentServerAddress (string &host, unsigned short &port) |
void | SetCurrentServerAddress (string host, unsigned short port) |
const vector< string > & | shipSelections () |
bool | selectShip (unsigned int ship) |
int | authenticate () |
int | loginAuth (string str_callsign, string str_passwd, string &error) |
int | loginLoop (string &error) |
vector< string > & | loginAcctLoop (string str_callsign, string str_passwd) |
void | loginAccept (Packet &p1) |
void | loginChooseShip (Packet &p1) |
SOCKETALT | init (const char *addr, unsigned short port, string &error) |
VsnetHTTPSocket * | init_acct (const std::string &addr) |
void | synchronizeTime (SOCKETALT *) |
void | setCallsign (char *calls) |
void | setCallsign (string calls) |
string | getCallsign () |
void | setUnit (Unit *un) |
Unit * | getUnit () |
unsigned int | getLag () |
int | isTime () |
SOCKETALT * | logout (bool leaveUDP) |
void | Respawn (ObjSerial clientname) |
void | saveRequest () |
void | dieRequest () |
int | checkMsg (Packet *outpacket) |
void | send (Cmd cmd, NetBuffer &netbuf, int mode, const char *file, int line) |
void | sendCustom (string cmd, string args, string id) |
void | sendPosition (const ClientState *cs) |
void | sendCloak (bool engage) |
void | sendAlive () |
void | inGame () |
bool | isInGame () |
Transformation | Interpolate (Unit *un, double addtime) |
void | scanRequest (Unit *target) |
void | targetRequest (Unit *target) |
void | respawnRequest () |
void | textMessage (const string &data) |
void | fireRequest (ObjSerial serial, const vector< int > &mount_indicies, char mis) |
void | unfireRequest (ObjSerial serial, const vector< int > &mount_indicies) |
void | cargoRequest (ObjSerial buyer, ObjSerial seller, const std::string &cargo, unsigned int quantity, int mountOffset, int subunitOffset) |
void | shipRequest (const std::string &cargo, unsigned char type) |
void | missionRequest (unsigned short packetType, string mission, int pos) |
void | communicationRequest (const class CommunicationMessage &c, ObjSerial sendTo) |
void | downloadZoneInfo () |
void | AddObjects (NetBuffer &netbuf) |
ClientPtr | AddClientObject (Unit *un, ObjSerial cltserial=0) |
bool | jumpRequest (string newsystem, ObjSerial jumpserial) |
bool | readyToJump () |
void | unreadyToJump () |
void | dockRequest (ObjSerial utdw_serial) |
void | undockRequest (ObjSerial utdw_serial) |
void | createNetComm (float minfreq, float maxfreq, bool video, bool secured, string method) |
void | destroyNetComm () |
void | startCommunication () |
void | stopCommunication () |
void | startWebcamTransfer () |
void | stopWebcamTransfer () |
void | sendWebcamPicture () |
char * | getWebcamCapture () |
char * | getWebcamFromNetwork (int &length) |
void | increaseFrequency () |
void | decreaseFrequency () |
float | getSelectedFrequency () |
float | getCurrentFrequency () |
void | switchSecured () |
void | switchWebcam () |
bool | hasWebcam () |
void | sendTextMessage (string message) |
bool | IsNetcommActive () const |
bool | IsNetcommSecured () const |
Static Public Member Functions | |
static void | Reconnect (std::string srvipaddr, unsigned short port) |
static void | CleanUp () |
Public Attributes | |
ObjSerial | serial |
Definition at line 45 of file accountserver.cpp.
NetClient::NetClient | ( | ) |
Definition at line 145 of file netclient.cpp.
References SocketSet::addDownloadManager(), getNewTime(), POSH_GetArchString(), and FileUtil::use_crypto.
NetClient::~NetClient | ( | ) |
Definition at line 173 of file netclient.cpp.
Definition at line 125 of file netclient_clients.cpp.
References _Universe, Universe::activeStarSystem(), StarSystem::AddUnit(), Unit::BackupState(), COUT, Unit::getFlightgroup(), Unit::getFullname(), getNetworkUnit(), Unit::GetSerial(), UnitContainer::GetUnit(), i, Mount::INACTIVE, isLocalSerial(), Unit::mounts, Flightgroup::name, Unit::name, Unit::old_state, Unit::PrimeOrders(), Unit::SetNetworkMode(), Unit::SetSerial(), and UnitContainer::SetUnit().
Referenced by AddObjects(), and Respawn().
void NetClient::AddObjects | ( | NetBuffer & | netbuf) |
Definition at line 198 of file netclient_clients.cpp.
References ZoneMgr::AddAsteroid, ZoneMgr::AddClient, AddClientObject(), ZoneMgr::AddMissile, ZoneMgr::AddNebula, ZoneMgr::AddPlanet, ZoneMgr::AddUnit, COUT, ZoneMgr::End, NetBuffer::getChar(), NetBuffer::getData(), UnitUtil::getFactionName(), Unit::getFullname(), NetBuffer::getOffset(), NetBuffer::getSerial(), Unit::GetSerial(), NetBuffer::getSize(), int, Unit::name, UnitFactory::parseAsteroidBuffer(), UnitFactory::parseMissileBuffer(), UnitFactory::parseNebulaBuffer(), UnitFactory::parsePlanetBuffer(), UnitFactory::parseUnitBuffer(), and serial.
Referenced by downloadZoneInfo().
int NetClient::authenticate | ( | ) |
Definition at line 26 of file netclient_login.cpp.
References NetBuffer::addString(), CMD_LOGIN, COUT, NetBuffer::getData(), Packet::getDataLength(), NetBuffer::getDataLength(), Packet::getHeaderLength(), VegaConfig::getVariable(), global_password, global_username, PSEUDO__LINE__, Packet::send(), SENDRELIABLE, and vs_config.
void NetClient::cargoRequest | ( | ObjSerial | buyer, |
ObjSerial | seller, | ||
const std::string & | cargo, | ||
unsigned int | quantity, | ||
int | mountOffset, | ||
int | subunitOffset | ||
) |
Definition at line 107 of file netclient_devices.cpp.
References NetBuffer::addInt32(), NetBuffer::addSerial(), NetBuffer::addString(), CMD_CARGOUPGRADE, UnitContainer::GetUnit(), send(), and SENDRELIABLE.
Referenced by Unit::AddCargo(), Unit::RemoveCargo(), and Unit::UpAndDownGrade().
Definition at line 367 of file netclient.cpp.
References CleanUp(), SOCKETALT::isActive(), NetworkCommunication::IsActive(), NetworkCommunication::SendSound(), and UniverseUtil::startMenuInterface().
|
static |
Definition at line 1492 of file netclient.cpp.
References _Universe, logout(), Network, and Universe::numPlayers().
Referenced by BaseComputer::actionConfirmedLoadGame(), checkMsg(), NetActionConfirm::confirmedJoinGame(), NetActionConfirm::finalizeJoinGame(), and GameMenu::processSinglePlayerButton().
void NetClient::communicationRequest | ( | const class CommunicationMessage & | c, |
ObjSerial | sendTo | ||
) |
Definition at line 223 of file netclient_devices.cpp.
References NetBuffer::addChar(), NetBuffer::addInt32(), NetBuffer::addSerial(), CMD_COMM, CommunicationMessage::curstate, CommunicationMessage::edgenum, CommunicationMessage::prevstate, send(), and SENDRELIABLE.
int NetClient::connectLoad | ( | string | user, |
string | pass, | ||
string & | error | ||
) |
Definition at line 653 of file netclient_login.cpp.
References bootstrap_draw(), error, GetCurrentServerAddress(), VegaConfig::getVariable(), init(), init_acct(), localSerials, loginAcctLoop(), loginAuth(), SOCKETALT::valid(), and vs_config.
Referenced by NetActionConfirm::confirmedJoinGame(), and Reconnect().
void NetClient::createNetComm | ( | float | minfreq, |
float | maxfreq, | ||
bool | video, | ||
bool | secured, | ||
string | method | ||
) |
Definition at line 254 of file netclient_devices.cpp.
void NetClient::decreaseFrequency | ( | ) |
Definition at line 306 of file netclient_devices.cpp.
References NetworkCommunication::MaxFreq(), and NetworkCommunication::MinFreq().
Referenced by FlyByKeyboard::Execute().
void NetClient::destroyNetComm | ( | ) |
Definition at line 263 of file netclient_devices.cpp.
void NetClient::dieRequest | ( | ) |
Definition at line 178 of file netclient_devices.cpp.
References CMD_KILL, UnitContainer::GetUnit(), send(), and SENDRELIABLE.
Referenced by NetActionConfirm::confirmedNetDie(), and UniverseUtil::loadGame().
void NetClient::dockRequest | ( | ObjSerial | utdw_serial) |
Definition at line 202 of file netclient_devices.cpp.
References NetBuffer::addSerial(), CMD_DOCK, send(), and SENDRELIABLE.
Referenced by CrashForceDock(), and Unit::Dock().
void NetClient::downloadZoneInfo | ( | ) |
Definition at line 181 of file netclient_clients.cpp.
References AddObjects(), COUT, VsnetDownload::Client::Buffer::done(), VsnetDownload::Client::Buffer::getBuffer(), VsnetDownload::Client::Buffer::getSize(), and VSFileSystem::ZoneBuffer.
Referenced by StarSystem::ProcessPendingJumps().
Definition at line 83 of file netclient_devices.cpp.
References NetBuffer::addChar(), NetBuffer::addInt32(), NetBuffer::addSerial(), CMD_FIREREQUEST, i, send(), and SENDRELIABLE.
Referenced by Unit::Fire().
|
inline |
Definition at line 182 of file netclient.h.
Referenced by BaseComputer::constructControls(), and createObjects().
float NetClient::getCurrentFrequency | ( | ) |
Definition at line 331 of file netclient_devices.cpp.
void NetClient::GetCurrentServerAddress | ( | string & | host, |
unsigned short & | port | ||
) |
Definition at line 316 of file netclient_login.cpp.
Referenced by connectLoad(), and BaseComputer::constructControls().
|
inline |
Definition at line 197 of file netclient.h.
Referenced by VDU::Draw().
float NetClient::getSelectedFrequency | ( | ) |
Definition at line 326 of file netclient_devices.cpp.
|
inline |
Definition at line 190 of file netclient.h.
References UnitContainer::GetUnit().
Referenced by BaseComputer::constructControls().
char * NetClient::getWebcamCapture | ( | ) |
Definition at line 359 of file netclient_devices.cpp.
References NetworkCommunication::GetWebcamCapture().
char * NetClient::getWebcamFromNetwork | ( | int & | length) |
Definition at line 366 of file netclient_devices.cpp.
References NetworkCommunication::GetWebcamFromNetwork().
bool NetClient::hasWebcam | ( | ) |
Definition at line 396 of file netclient_devices.cpp.
References NetworkCommunication::HasWebcam().
void NetClient::increaseFrequency | ( | ) |
Definition at line 316 of file netclient_devices.cpp.
References NetworkCommunication::MaxFreq(), and NetworkCommunication::MinFreq().
Referenced by FlyByKeyboard::Execute().
void NetClient::inGame | ( | ) |
Definition at line 600 of file netclient_clients.cpp.
References CMD_ADDCLIENT, COUT, UnitContainer::GetUnit(), Unit::Position(), send(), SENDRELIABLE, serial, and Unit::SetSerial().
Referenced by StarSystem::ProcessPendingJumps(), Reconnect(), and startGame().
SOCKETALT NetClient::init | ( | const char * | addr, |
unsigned short | port, | ||
string & | error | ||
) |
Definition at line 376 of file netclient_login.cpp.
References CLIENT_NETVERSION, CMD_CONNECT, COUT, NetUITCP::createSocket(), SOCKETALT::disconnect(), NetUIUDP::disconnectSaveUDP(), VegaConfig::getVariable(), NETWORK_ATOM, PSEUDO__LINE__, Packet::send(), SENDRELIABLE, VSThread::start(), SOCKETALT::valid(), and vs_config.
Referenced by connectLoad().
VsnetHTTPSocket * NetClient::init_acct | ( | const std::string & | addr) |
Definition at line 356 of file netclient_login.cpp.
References COUT, and VSThread::start().
Referenced by connectLoad().
Transformation NetClient::Interpolate | ( | Unit * | un, |
double | addtime | ||
) |
Definition at line 1579 of file netclient.cpp.
References Unit::curr_physical_state, and Unit::GetSerial().
Referenced by GameUnit< UnitType >::UpdatePhysics2().
|
inline |
Definition at line 220 of file netclient.h.
bool NetClient::IsNetcommActive | ( | ) | const |
Definition at line 373 of file netclient_devices.cpp.
References NetworkCommunication::IsActive().
bool NetClient::IsNetcommSecured | ( | ) | const |
int NetClient::isTime | ( | ) |
Definition at line 135 of file netclient_devices.cpp.
References CMD_JUMP, UnitContainer::GetUnit(), send(), and SENDRELIABLE.
Referenced by StarSystem::JumpTo().
void NetClient::loginAccept | ( | Packet & | p1) |
Definition at line 207 of file netclient_login.cpp.
References _Universe, bootstrap_draw(), COUT, Universe::current_stardate, VsnetDownload::Client::NoteFile::done(), f, VSFileSystem::GetCorrectStarSysPath(), Packet::getData(), Packet::getDataLength(), StarDate::GetFullTrekDate(), Packet::getSerial(), FileUtil::HashCompare(), StarDate::InitTrek(), localSerials, serial, and VSFileSystem::SystemFile.
vector< string > & NetClient::loginAcctLoop | ( | string | str_callsign, |
string | str_passwd | ||
) |
Definition at line 139 of file netclient_login.cpp.
References ACCT_LOGIN_DATA, addSimpleChar(), addSimpleString(), COUT, VegaConfig::getVariable(), newtime, queryTime(), VsnetOSS::recv(), VsnetHTTPSocket::sendstr(), vs_config, and SocketSet::waste_time().
Referenced by connectLoad().
int NetClient::loginAuth | ( | string | str_callsign, |
string | str_passwd, | ||
string & | error | ||
) |
Definition at line 67 of file netclient_login.cpp.
References NetBuffer::addString(), CMD_LOGIN, COUT, NetBuffer::getData(), Packet::getDataLength(), NetBuffer::getDataLength(), loginLoop(), PSEUDO__LINE__, Packet::send(), and SENDRELIABLE.
Referenced by connectLoad().
void NetClient::loginChooseShip | ( | Packet & | p1) |
Definition at line 197 of file netclient_login.cpp.
References Packet::getData(), Packet::getDataLength(), and i.
int NetClient::loginLoop | ( | string & | error) |
Definition at line 93 of file netclient_login.cpp.
References COUT, VegaConfig::getVariable(), VsnetOSS::recv(), and vs_config.
Referenced by loginAuth(), and selectShip().
vector< string > * NetClient::loginSavedGame | ( | int | ship = 0 ) |
Definition at line 706 of file netclient_login.cpp.
References selectShip().
Referenced by Reconnect().
Definition at line 1464 of file netclient.cpp.
References CMD_LOGOUT, SOCKETALT::disconnect(), NetUIUDP::disconnectSaveUDP(), SOCKETALT::get_fd(), Mission::getNthPlayerMission(), Unit::GetSerial(), UnitContainer::GetUnit(), Network, PSEUDO__LINE__, Packet::send(), SENDRELIABLE, Mission::terminateMission(), and SOCKETALT::valid().
Referenced by CleanUp(), and Reconnect().
void NetClient::missionRequest | ( | unsigned short | packetType, |
string | mission, | ||
int | pos | ||
) |
Definition at line 212 of file netclient_devices.cpp.
References NetBuffer::addInt32(), NetBuffer::addShort(), NetBuffer::addString(), CMD_MISSION, send(), and SENDRELIABLE.
Referenced by BaseComputer::acceptMission().
bool NetClient::readyToJump | ( | ) |
Definition at line 168 of file netclient_devices.cpp.
|
static |
Definition at line 1502 of file netclient.cpp.
References _Universe, Universe::AccessCockpit(), Universe::clearAllSystems(), connectLoad(), COUT, getNewTime(), UniverseUtil::hideSplashScreen(), inGame(), k, localSerials, loginSavedGame(), logout(), Network, Universe::numPlayers(), Reinitialize(), Respawn(), SetConfigServerAddress(), SetCurrentServerAddress(), UniverseUtil::showSplashScreen(), UniverseUtil::startMenuInterface(), synchronizeTime(), and Cockpit::TimeOfLastCollision.
void NetClient::Reinitialize | ( | ) |
Definition at line 116 of file netclient.cpp.
References getNewTime(), and FileUtil::use_crypto.
Referenced by Reconnect().
void NetClient::Respawn | ( | ObjSerial | clientname) |
Definition at line 390 of file netclient.cpp.
References _Universe, Universe::AccessCockpit(), Cockpit::activeStarSystem, Universe::activeStarSystem(), AddClientObject(), StarSystem::AddUnit(), Background::Cache(), Universe::clearAllSystems(), CP_FRONT, UnitFactory::createUnit(), Cockpit::credits, Universe::CurrentCockpit(), Cockpit::fg, Flightgroup::flightgroup_nr, Background::BackgroundClone::FreeClone(), Universe::GenerateStarSystem(), StarSystem::getBackground(), FactionUtil::GetFactionIndex(), Cockpit::GetParent(), SaveGame::GetPlayerFaction(), Cockpit::GetUnitFileName(), VegaConfig::getVariable(), UniverseUtil::hideSplashScreen(), localSerials, Flightgroup::nr_ships, Flightgroup::nr_ships_left, Universe::numPlayers(), XMLSupport::parse_float(), SaveGame::ParseSaveGame(), Universe::popActiveStarSystem(), Universe::pushActiveStarSystem(), QVector, Cockpit::savegame, Universe::SetActiveCockpit(), Cockpit::SetParent(), Unit::SetPosAndCumPos(), Unit::SetSerial(), SaveGame::SetStarSystem(), UnitContainer::SetUnit(), Cockpit::SetView(), SwitchUnits2(), Cockpit::UnpackUnitInfo(), Vector, vs_config, and Cockpit::zoomfactor.
Referenced by Reconnect().
void NetClient::respawnRequest | ( | ) |
Definition at line 294 of file netclient_login.cpp.
References CMD_RESPAWN, NetBuffer::getData(), NetBuffer::getDataLength(), PSEUDO__LINE__, Packet::send(), and SENDRELIABLE.
Referenced by Cockpit::Update().
void NetClient::saveRequest | ( | ) |
Definition at line 188 of file netclient_devices.cpp.
References _Universe, CMD_SAVEACCOUNTS, SaveNetUtil::GetSaveStrings(), UnitContainer::GetUnit(), send(), SENDRELIABLE, and Universe::whichPlayerStarship().
Referenced by NetActionConfirm::confirmedNetSaveGame(), and UniverseUtil::saveGame().
void NetClient::scanRequest | ( | Unit * | target) |
Definition at line 54 of file netclient_devices.cpp.
References NetBuffer::addSerial(), CMD_SCAN, Unit::GetSerial(), UnitContainer::GetUnit(), send(), and SENDRELIABLE.
Definition at line 627 of file netclient_login.cpp.
References NetBuffer::addShort(), NetBuffer::addString(), CMD_CHOOSESHIP, NetBuffer::getData(), NetBuffer::getDataLength(), loginLoop(), PSEUDO__LINE__, Packet::send(), and SENDRELIABLE.
Referenced by loginSavedGame().
Definition at line 12 of file netclient_devices.cpp.
References accountXML::file, NetBuffer::getData(), NetBuffer::getDataLength(), Unit::GetSerial(), UnitContainer::GetUnit(), Packet::send(), SENDANDFORGET, and serial.
Referenced by cargoRequest(), communicationRequest(), dieRequest(), dockRequest(), fireRequest(), inGame(), jumpRequest(), missionRequest(), saveRequest(), scanRequest(), sendCloak(), sendCustom(), sendPosition(), shipRequest(), targetRequest(), undockRequest(), and unfireRequest().
void NetClient::sendAlive | ( | ) |
Definition at line 622 of file netclient_clients.cpp.
References CMD_PING, Unit::GetSerial(), UnitContainer::GetUnit(), PSEUDO__LINE__, Packet::send(), and SENDANDFORGET.
void NetClient::sendCloak | ( | bool | engage) |
Definition at line 31 of file netclient_devices.cpp.
References NetBuffer::addChar(), CMD_CLOAK, send(), and SENDRELIABLE.
Referenced by GameUnit< UnitType >::Cloak().
void NetClient::sendCustom | ( | string | cmd, |
string | args, | ||
string | id | ||
) |
Definition at line 42 of file netclient_devices.cpp.
References NetBuffer::addString(), CMD_CUSTOM, send(), and SENDRELIABLE.
Referenced by UniverseUtil::sendCustom().
void NetClient::sendPosition | ( | const ClientState * | cs) |
Definition at line 316 of file netclient_clients.cpp.
References NetBuffer::addChar(), NetBuffer::addClientState(), NetBuffer::addSerial(), NetBuffer::addVector(), aim_assist(), CMD_POSUPDATE, COUT, ClientState::getPosition(), ClientState::getSerial(), Unit::GetSerial(), ClientState::getSpecMult(), UnitContainer::GetUnit(), VegaConfig::getVariable(), Unit::graphicOptions, Unit::InRange(), Unit::graphic_options::InWarp, XMLSupport::parse_bool(), send(), SENDANDFORGET, Unit::Target(), and vs_config.
Referenced by GameUnit< UnitType >::UpdatePhysics2().
void NetClient::sendTextMessage | ( | string | message) |
Definition at line 336 of file netclient_devices.cpp.
References NetworkCommunication::IsActive(), and NetworkCommunication::SendMessage().
void NetClient::sendWebcamPicture | ( | ) |
|
inline |
Definition at line 174 of file netclient.h.
|
inline |
Definition at line 178 of file netclient.h.
void NetClient::SetConfigServerAddress | ( | string & | host, |
unsigned short & | port | ||
) |
Definition at line 328 of file netclient_login.cpp.
References VegaConfig::getVariable(), XMLSupport::parse_bool(), and vs_config.
Referenced by bootstrap_main_loop(), NetActionConfirm::confirmedJoinGame(), and Reconnect().
void NetClient::SetCurrentServerAddress | ( | string | host, |
unsigned short | port | ||
) |
Definition at line 322 of file netclient_login.cpp.
Referenced by Reconnect().
|
inline |
Definition at line 186 of file netclient.h.
References UnitContainer::SetUnit().
Referenced by createObjects().
void NetClient::shipRequest | ( | const std::string & | cargo, |
unsigned char | type | ||
) |
Definition at line 127 of file netclient_devices.cpp.
References NetBuffer::addChar(), NetBuffer::addString(), CMD_SHIPDEALER, send(), and SENDRELIABLE.
Referenced by buyShip(), and sellShip().
|
inline |
Definition at line 154 of file netclient.h.
Referenced by NetActionConfirm::confirmedJoinGame().
void NetClient::startCommunication | ( | ) |
Definition at line 271 of file netclient_devices.cpp.
References NetBuffer::addChar(), NetBuffer::addFloat(), CMD_STARTNETCOMM, NetBuffer::getData(), NetBuffer::getDataLength(), NetworkCommunication::HasPortaudio(), NetworkCommunication::HasWebcam(), NetworkCommunication::InitSession(), NetworkCommunication::IsSecured(), PSEUDO__LINE__, Packet::send(), SENDRELIABLE, and serial.
Referenced by FlyByKeyboard::Execute().
void NetClient::startGame | ( | ) |
Definition at line 715 of file netclient_login.cpp.
References _Universe, Universe::AccessCockpit(), bootstrap_draw(), Universe::clearAllSystems(), CopySavedShips(), Universe::createCockpit(), createObjects(), inGame(), Universe::Init(), Universe::numPlayers(), SaveGame::ParseSaveGame(), QVector, Cockpit::savegame, SaveGame::SetStarSystem(), synchronizeTime(), and Vector.
Referenced by NetActionConfirm::finalizeJoinGame().
void NetClient::startWebcamTransfer | ( | ) |
Definition at line 349 of file netclient_devices.cpp.
References NetworkCommunication::StartWebcamTransfer().
Referenced by VDU::SwitchMode().
void NetClient::stopCommunication | ( | ) |
Definition at line 293 of file netclient_devices.cpp.
References NetBuffer::addFloat(), CMD_STOPNETCOMM, NetworkCommunication::DestroySession(), NetBuffer::getData(), NetBuffer::getDataLength(), PSEUDO__LINE__, Packet::send(), SENDRELIABLE, and serial.
Referenced by FlyByKeyboard::Execute().
void NetClient::stopWebcamTransfer | ( | ) |
Definition at line 354 of file netclient_devices.cpp.
References NetworkCommunication::StopWebcamTransfer().
Referenced by VDU::SwitchMode().
void NetClient::switchSecured | ( | ) |
Definition at line 386 of file netclient_devices.cpp.
References NetworkCommunication::SwitchSecured().
Referenced by FlyByKeyboard::Execute().
void NetClient::switchWebcam | ( | ) |
Definition at line 391 of file netclient_devices.cpp.
References NetworkCommunication::SwitchWebcam().
Referenced by FlyByKeyboard::Execute().
void NetClient::synchronizeTime | ( | SOCKETALT * | udpsock) |
Definition at line 462 of file netclient_login.cpp.
References _Universe, Universe::AccessCockpit(), NetBuffer::addShort(), CMD_SERVERTIME, COUT, NetUIUDP::createSocket(), NetUIUDP::disconnectSaveUDP(), UniverseUtil::exp(), Packet::getCommand(), NetBuffer::getData(), Packet::getData(), Packet::getDataLength(), NetBuffer::getDataLength(), NetBuffer::getDouble(), VegaConfig::getVariable(), i, SOCKETALT::isTcp(), NetUIBase::lookupHost(), Universe::numPlayers(), XMLSupport::parse_int(), PSEUDO__LINE__, queryTime(), VsnetOSS::recv(), Packet::send(), SENDRELIABLE, SOCKETALT::set_block(), SOCKETALT::set_nonblock(), setNewTime(), SOCKETALT::setRemoteAddress(), Cockpit::TimeOfLastCollision, VSRandom::uniformInc(), SOCKETALT::valid(), vs_config, and vsrandom.
Referenced by Reconnect(), and startGame().
void NetClient::targetRequest | ( | Unit * | target) |
Definition at line 68 of file netclient_devices.cpp.
References NetBuffer::addSerial(), CMD_TARGET, Unit::computer, Unit::GetSerial(), UnitContainer::GetUnit(), send(), SENDRELIABLE, UnitContainer::SetUnit(), and Unit::Computer::target.
Referenced by ChooseTargets(), and getNearestTargetUnit().
void NetClient::textMessage | ( | const string & | data) |
Definition at line 304 of file netclient_login.cpp.
References NetBuffer::addString(), CMD_TXTMESSAGE, NetBuffer::getData(), NetBuffer::getDataLength(), PSEUDO__LINE__, Packet::send(), and SENDRELIABLE.
Referenced by CockpitKeys::TextMessageCallback().
void NetClient::undockRequest | ( | ObjSerial | utdw_serial) |
Definition at line 238 of file netclient_devices.cpp.
References NetBuffer::addSerial(), CMD_UNDOCK, send(), and SENDRELIABLE.
Referenced by BaseInterface::Room::Launch::Click(), and Unit::UnDock().
Definition at line 96 of file netclient_devices.cpp.
References NetBuffer::addInt32(), NetBuffer::addSerial(), CMD_UNFIREREQUEST, i, send(), and SENDRELIABLE.
Referenced by Unit::UnFire().
void NetClient::unreadyToJump | ( | ) |
Definition at line 173 of file netclient_devices.cpp.
Referenced by StarSystem::ProcessPendingJumps().
ObjSerial NetClient::serial |
Definition at line 90 of file netclient.h.
Referenced by AddObjects(), BaseComputer::constructControls(), inGame(), loginAccept(), send(), startCommunication(), and stopCommunication().