| 276 | } |
| 277 | |
| 278 | void CChannelIce::close() |
| 279 | { |
| 280 | qDebug(m_Log) << "CChannelIce::Close()"; |
| 281 | |
| 282 | m_pSignal->disconnect(this); |
| 283 | |
| 284 | if(m_dataChannel) |
| 285 | { |
| 286 | m_dataChannel->close(); |
| 287 | m_dataChannel.reset(); |
| 288 | } |
| 289 | if(m_peerConnection) |
| 290 | { |
| 291 | m_peerConnection->close(); |
| 292 | m_peerConnection.reset(); |
| 293 | } |
| 294 | |
| 295 | CChannel::close(); |
| 296 | return; |
| 297 | } |
| 298 | |
| 299 | #define DEFAULT_MAX_MESSAGE_SIZE 0x7FFF |
| 300 | qint64 CChannelIce::writeData(const char *data, qint64 len) |