MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / TcpServerStart

Function TcpServerStart

source/tcpcon.cpp:83–103  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

81}
82//---------------------------------------------------------------------------
83void TcpServerStart(void)
84{
85 if( ! MainCfg.TcpEnable )
86 {
87 TcpPrintStatus();
88 return;
89 }
90
91 if( tcp->Open(MainCfg.TcpInterface.c_str(), MainCfg.TcpPort) )
92 {
93 TcpPrintStatus();
94 }
95 else
96 {
97 TcpPrintStatus();
98 String err = String("Error tcp: ") + tcp->GetErrorMessageEng() +
99 " [tcp port " + IntToStr(MainCfg.TcpPort) + "]";
100 WriteToLogError(String("ERROR\t") + err);
101 ReportError2(err);
102 }
103}
104//---------------------------------------------------------------------------
105void TcpServerStop(void)
106{

Callers 2

FormCreateMethod · 0.85
aSetupExecuteMethod · 0.85

Calls 5

TcpPrintStatusFunction · 0.85
WriteToLogErrorFunction · 0.85
ReportError2Function · 0.85
OpenMethod · 0.45
GetErrorMessageEngMethod · 0.45

Tested by

no test coverage detected