---------------------------------------------------------------------------
| 81 | } |
| 82 | //--------------------------------------------------------------------------- |
| 83 | void 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 | //--------------------------------------------------------------------------- |
| 105 | void TcpServerStop(void) |
| 106 | { |
no test coverage detected