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

Function TcpServerCreate

source/tcpcon.cpp:60–73  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

58TList * tcp_cons = NULL;
59//---------------------------------------------------------------------------
60bool TcpServerCreate(void)
61{
62 tcp_cons = new TList();
63 tcp = new MTCPServer();
64 if( tcp->GetError() )
65 {
66 String err = String("Error tcp: ") + tcp->GetErrorMessageEng();
67 WriteToLogError(String("ERROR\t") + err);
68 ReportError2(err);
69 return false;
70 }
71 else
72 return true;
73}
74//---------------------------------------------------------------------------
75void TcpServerDestroy(void)
76{

Callers 1

FormCreateMethod · 0.85

Calls 4

WriteToLogErrorFunction · 0.85
ReportError2Function · 0.85
GetErrorMethod · 0.45
GetErrorMessageEngMethod · 0.45

Tested by

no test coverage detected