MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / PrintDedicatedMessage

Function PrintDedicatedMessage

Descent3/dedicated_server.cpp:776–789  ·  view source on GitHub ↗

Prints a message to the console if the dedicated server is active

Source from the content-addressed store, hash-verified

774
775// Prints a message to the console if the dedicated server is active
776void PrintDedicatedMessage(const char *fmt, ...) {
777 if (!Dedicated_server)
778 return;
779
780 char buf[CON_MAX_STRINGLEN];
781 std::va_list args;
782
783 va_start(args, fmt);
784 std::vsnprintf(buf, CON_MAX_STRINGLEN, fmt, args);
785 va_end(args);
786
787 con_Printf(buf);
788 DedicatedSocketputs(buf);
789}
790
791#if defined(POSIX)
792#include <netinet/in.h>

Callers 15

mng_LoadNetPagesFunction · 0.85
MultiEndLevelFunction · 0.85
CheckMissionForScriptFunction · 0.85
LoadLevelFunction · 0.85
RunServerConfigsFunction · 0.85
LoadServerConfigFileFunction · 0.85
SetCVarStringFunction · 0.85
SetCVarFunction · 0.85
DoDedicatedServerFrameFunction · 0.85
ListenDedicatedSocketFunction · 0.85
DedicatedLogoutTelnetFunction · 0.85
DedicatedReadTelnetFunction · 0.85

Calls 2

DedicatedSocketputsFunction · 0.85
con_PrintfFunction · 0.50

Tested by

no test coverage detected