MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
lila_server.cpp File Reference

Entry point for the Lila live coding TCP server binary. More...

#include "Lila/Commentator.hpp"
#include "Lila/Lila.hpp"
#include "Lila/EventBus.hpp"
#include <atomic>
#include <csignal>
#include <iostream>
+ Include dependency graph for lila_server.cpp:

Go to the source code of this file.

Functions

void signal_handler (int signal)
 Handles SIGINT and SIGTERM for graceful shutdown.
 
void print_usage (const char *program_name)
 Prints usage information for the server binary.
 
Lila::LogLevel parse_log_level (const std::string &level_str)
 Parses a string to a Lila::LogLevel value.
 
int main (int argc, char **argv)
 Main entry point for the Lila server binary.
 

Variables

std::atomic< bool > g_running { true }
 Global flag to control server running state.
 

Detailed Description

Entry point for the Lila live coding TCP server binary.

This program launches the Lila server, which enables interactive live coding sessions over TCP for MayaFlux. It parses command-line options for port, verbosity, and log level, sets up signal handling for graceful shutdown, and manages the main server loop.

Usage: lila_server [OPTIONS]

Options: -p, –port <port> Server port (default: 9090) -v, –verbose Enable verbose logging -l, –level <level> Set log level (TRACE, DEBUG, INFO, WARN, ERROR, FATAL) -h, –help Show help message

Definition in file lila_server.cpp.