| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 if (!channel) { | 357 if (!channel) { |
| 358 LOG(LS_ERROR) << "SendThresholdCallback: Failed to get channel for socket " | 358 LOG(LS_ERROR) << "SendThresholdCallback: Failed to get channel for socket " |
| 359 << sock; | 359 << sock; |
| 360 return 0; | 360 return 0; |
| 361 } | 361 } |
| 362 channel->OnSendThresholdCallback(); | 362 channel->OnSendThresholdCallback(); |
| 363 return 0; | 363 return 0; |
| 364 } | 364 } |
| 365 | 365 |
| 366 SctpDataMediaChannel::SctpDataMediaChannel(rtc::Thread* thread) | 366 SctpDataMediaChannel::SctpDataMediaChannel(rtc::Thread* thread) |
| 367 : worker_thread_(thread), | 367 : DataMediaChannel(MediaChannelOptions()), |
| 368 worker_thread_(thread), |
| 368 local_port_(kSctpDefaultPort), | 369 local_port_(kSctpDefaultPort), |
| 369 remote_port_(kSctpDefaultPort), | 370 remote_port_(kSctpDefaultPort), |
| 370 sock_(NULL), | 371 sock_(NULL), |
| 371 sending_(false), | 372 sending_(false), |
| 372 receiving_(false), | 373 receiving_(false), |
| 373 debug_name_("SctpDataMediaChannel") { | 374 debug_name_("SctpDataMediaChannel") { |
| 374 } | 375 } |
| 375 | 376 |
| 376 SctpDataMediaChannel::~SctpDataMediaChannel() { | 377 SctpDataMediaChannel::~SctpDataMediaChannel() { |
| 377 CloseSctpSocket(); | 378 CloseSctpSocket(); |
| (...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1044 } | 1045 } |
| 1045 case MSG_SCTPOUTBOUNDPACKET: { | 1046 case MSG_SCTPOUTBOUNDPACKET: { |
| 1046 rtc::scoped_ptr<OutboundPacketMessage> pdata( | 1047 rtc::scoped_ptr<OutboundPacketMessage> pdata( |
| 1047 static_cast<OutboundPacketMessage*>(msg->pdata)); | 1048 static_cast<OutboundPacketMessage*>(msg->pdata)); |
| 1048 OnPacketFromSctpToNetwork(pdata->data().get()); | 1049 OnPacketFromSctpToNetwork(pdata->data().get()); |
| 1049 break; | 1050 break; |
| 1050 } | 1051 } |
| 1051 } | 1052 } |
| 1052 } | 1053 } |
| 1053 } // namespace cricket | 1054 } // namespace cricket |
| OLD | NEW |