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

Function TcpPrintStatus

source/tcpcon.cpp:162–176  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

160}
161//---------------------------------------------------------------------------
162void TcpPrintStatus(void)
163{
164 if( ! MainCfg.TcpEnable )
165 {
166 PrintSB(1, "TCP: server disabled");
167 }
168 else
169 {
170 if( tcp->IsOpen() )
171 PrintSB(1, String("TCP ") + tcp->GetLocalAddrPort() +
172 " [" + IntToStr(TcpGetConnectionsCount()) + "]");
173 else
174 PrintSB(1, "TCP: server not started");
175 }
176}
177//---------------------------------------------------------------------------
178void TcpReceiveMessage(void)
179{

Callers 4

TcpServerStartFunction · 0.85
TcpServerStopFunction · 0.85
TcpAddConnectionFunction · 0.85
TcpDeleteConnectionFunction · 0.85

Calls 4

PrintSBFunction · 0.85
TcpGetConnectionsCountFunction · 0.85
IsOpenMethod · 0.45
GetLocalAddrPortMethod · 0.45

Tested by

no test coverage detected