21 lines
817 B
C++
21 lines
817 B
C++
|
|
#include "server.h"
|
||
|
|
|
||
|
|
#include <cstdio>
|
||
|
|
|
||
|
|
namespace voicecat::server {
|
||
|
|
|
||
|
|
int Server::run() {
|
||
|
|
// M0 stub: report what a real run WILL do, then exit. M1 brings up the TLS listener,
|
||
|
|
// session registry, and channel manager (docs/architecture.md §5).
|
||
|
|
std::printf(" server_name : %s\n", cfg_.server_name.c_str());
|
||
|
|
std::printf(" data_dir : %s\n", cfg_.data_dir.c_str());
|
||
|
|
std::printf(" bind_port : %u (TCP control + UDP media)\n", cfg_.bind_port);
|
||
|
|
std::printf(" allow_guests: %s\n", cfg_.allow_guests ? "true" : "false");
|
||
|
|
std::printf(" fingerprint : <generated on first run — TODO M1>\n");
|
||
|
|
std::printf("\n[voicecat-server] M0 skeleton: networking not implemented yet. "
|
||
|
|
"See docs/roadmap.md (M1) and AGENTS.md.\n");
|
||
|
|
return 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
} // namespace voicecat::server
|