DCSModulesAPI  1.0.0
DCS sub project containing all the control modules as libraries.
sockets/simple_server.cpp

An example showing how to implement a simple server.

#include <iostream>
int main()
{
using namespace DCS::Network; // For Server and Socket
Socket s = Server::Create(15777);
// This waits for a client to connect (blocking)
Socket client = Server::WaitForConnection(s);
// Will run indefinitely until client disconnect, or...
std::this_thread::sleep_for(std::chrono::milliseconds(1000)); // Wait one second to issue stop command
return 0;
}