#include "C4Include.h"
#include "network/C4NetIO.h"
#include "lib/C4Random.h"
#include <arpa/inet.h>
Go to the source code of this file.
Classes | |
class | MyCBClass |
Macros | |
#define | ASYNC_CONNECT |
#define | USE_UDP |
Functions | |
int | main (int argc, char *argv[]) |
Variables | |
bool | fHost |
int | iCnt = 0 |
int | iSize = 0 |
char | DummyData [1024 *1024] |
#define ASYNC_CONNECT |
Definition at line 35 of file TstC4NetIO.cpp.
#define USE_UDP |
Definition at line 38 of file TstC4NetIO.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 95 of file TstC4NetIO.cpp.
References C4NetIOMan::AddIO(), C4NetIOUDP::Close(), C4NetIOUDP::Connect(), DummyData, fHost, FixedRandom(), C4NetIO::GetError(), iCnt, C4NetIOUDP::Init(), C4NetIOUDP::InitBroadcast(), iSize, C4NetIO::Send(), StdSchedulerThread::Start(), and StdSchedulerThread::Stop().
char DummyData[1024 *1024] |
Definition at line 33 of file TstC4NetIO.cpp.
Referenced by main(), MyCBClass::OnConn(), and MyCBClass::OnPacket().
bool fHost |
Definition at line 31 of file TstC4NetIO.cpp.
Referenced by C4MainMenu::ActivateHost(), C4GameOptionButtons::C4GameOptionButtons(), main(), C4GameLobby::MainDlg::MainDlg(), and MyCBClass::OnConn().
int iCnt = 0 |
Definition at line 32 of file TstC4NetIO.cpp.
Referenced by StdStrBuf::AppendChars(), C4FindObjectAnd::C4FindObjectAnd(), C4FindObjectAndStatic::C4FindObjectAndStatic(), C4FindObjectOr::C4FindObjectOr(), C4SortObjectMultiple::C4SortObjectMultiple(), C4FindObjectAnd::ForgetConditions(), C4ClientList::getClientCnt(), C4Effect::GetCount(), C4TeamList::GetLargestTeamID(), C4PacketList::getPktCnt(), C4TeamList::GetRandomSmallestTeam(), C4GraphCollection::GetSeries(), C4PlayerInfoList::GetStartupCount(), C4TeamList::GetTeamByID(), C4TeamList::GetTeamByName(), C4TeamList::GetTeamByPlayerID(), C4Network2Players::HandlePlayerInfoUpdRequest(), C4FindObjectAnd::IsEnsured(), C4FindObjectOr::IsImpossible(), main(), MyCBClass::OnPacket(), C4TeamList::RecheckPlayers(), C4TeamList::RecheckTeams(), C4MainStat::Show(), C4Landscape::P::UpdatePixCnt(), and C4Network2ClientDlg::UpdateText().
int iSize = 0 |
Definition at line 32 of file TstC4NetIO.cpp.
Referenced by AddDbgRec(), C4Group_CopyEntry(), C4Playback::Check(), C4Set< T >::CompileFunc(), C4ValueNumbers::CompileFunc(), StdSTLContainerAdapt< C >::CompileFunc(), StdHexAdapt::CompileFunc(), C4FindObject::CreateByValue(), C4SortObject::CreateByValue(), C4GameControl::DbgRec(), C4RankSystem::DrawRankSymbol(), C4MCCallbackArray::EnablePixel(), C4UpdatePackage::Execute(), C4FindObject::FindMany(), DirSizeHelper::GetDirSize(), GetFileCRC(), GetFileSHA1(), C4ValueMapData::GetItem(), GetLogSection(), C4FoWLight::getNormalSize(), C4NetIOTCP::Peer::GetRecvBuf(), C4FoWLight::getSize(), C4Network2Res::GetStandalone(), C4FontLoader::InitFont(), CPNGFile::Load(), C4RankSystem::Load(), main(), C4UpdatePackage::MakeUpdate(), mkArrayAdapt(), mkArrayAdaptDefArr(), mkArrayAdaptDefArrMap(), mkArrayAdaptMap(), mkHexAdapt(), mkRawAdapt(), MyCBClass::OnConn(), C4DownloadDlg::OnIdle(), MyCBClass::OnPacket(), C4NetIOTCP::Peer::OnRecv(), C4NetIOTCP::PackPacket(), C4MCParser::ParseFile(), StdCompilerBinWrite::Raw(), StdCompilerBinRead::Raw(), StdCompilerINIWrite::Raw(), StdCompilerINIRead::Raw(), CStdFile::Read(), C4Surface::ReadPNG(), SCopyEnclosed(), C4Network2ResChunk::Set(), C4Network2ResCore::SetLoadable(), C4NetIOSimpleUDP::SetMCLoopback(), C4ValueArray::SetSize(), C4ValueArray::SetSlice(), SGetModule(), C4ValueArray::Sort(), C4ValueArray::SortByArrayElement(), C4ValueArray::SortByProperty(), C4Facet::Truncate(), CStdFile::Write(), and StdCompilerBinWrite::WriteData().