Cogs.Foundation
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
Network.cpp File Reference
#include "Network.h"
#include "Connection.h"
#include "../Platform/Threads.h"
#include "../Platform/Timer.h"
#include <algorithm>
#include <condition_variable>
#include <vector>
#include <chrono>
#include <sys/select.h>

Namespaces

namespace  Cogs
 Main Cogs namespace.
 
namespace  Cogs::Network
 

Functions

void Cogs::Network::ThreadFn ()
 Network thread function.
 

Variables

Thread * Cogs::Network::gThread = nullptr
 
bool Cogs::Network::gExit = false
 
std::mutex Cogs::Network::gMutex
 
std::vector< ConnectionBase * > Cogs::Network::gNewConnections
 
std::vector< ConnectionBase * > Cogs::Network::gConnections
 
std::condition_variable Cogs::Network::gAddCV
 
std::condition_variable Cogs::Network::gRemoveCV