| 137 | } |
| 138 | |
| 139 | int CConnectLayerQTcpSocket::OnLayerRead(void *data, int bytes) |
| 140 | { |
| 141 | //* |
| 142 | if(m_hSocket) |
| 143 | WSAResetEvent(m_hSocket);//*/ |
| 144 | int nRet = m_TcpSocket.read((char*)data, bytes); |
| 145 | qDebug(log) << Q_FUNC_INFO << nRet << bytes; |
| 146 | return nRet; |
| 147 | } |
| 148 | |
| 149 | int CConnectLayerQTcpSocket::OnLayerWrite(const void *data, int bytes) |
| 150 | { |