---------------------------------------------------------------------------
| 113 | } |
| 114 | //--------------------------------------------------------------------------- |
| 115 | void TcpAccept(void) |
| 116 | { |
| 117 | // Have new TCP connection ? |
| 118 | MSocket * p = tcp->GetClient(1); // 1 msec |
| 119 | if( p ) |
| 120 | { |
| 121 | // yes |
| 122 | TcpAddConnection(p); |
| 123 | } |
| 124 | else |
| 125 | { |
| 126 | if( tcp->errcode ) |
| 127 | WriteToLogError("ERROR\tTCP connection: %s code=%ld", |
| 128 | tcp->GetErrorMessageEng().c_str(), tcp->errcode); |
| 129 | } |
| 130 | } |
| 131 | //--------------------------------------------------------------------------- |
| 132 | void TcpAddConnection(MSocket * p) |
| 133 | { |
no test coverage detected