| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2012 Google Inc. and Robin Seggelmann | 3 * Copyright 2012 Google Inc. and Robin Seggelmann |
| 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 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 Disconnect(); | 556 Disconnect(); |
| 557 } | 557 } |
| 558 return true; | 558 return true; |
| 559 } | 559 } |
| 560 | 560 |
| 561 bool SctpDataMediaChannel::SetReceive(bool receive) { | 561 bool SctpDataMediaChannel::SetReceive(bool receive) { |
| 562 receiving_ = receive; | 562 receiving_ = receive; |
| 563 return true; | 563 return true; |
| 564 } | 564 } |
| 565 | 565 |
| 566 bool SctpDataMediaChannel::SetSendParameters(const DataSendParameters& params) { |
| 567 return SetSendCodecs(params.codecs); |
| 568 } |
| 569 |
| 570 bool SctpDataMediaChannel::SetRecvParameters(const DataRecvParameters& params) { |
| 571 return SetRecvCodecs(params.codecs); |
| 572 } |
| 573 |
| 566 bool SctpDataMediaChannel::AddSendStream(const StreamParams& stream) { | 574 bool SctpDataMediaChannel::AddSendStream(const StreamParams& stream) { |
| 567 return AddStream(stream); | 575 return AddStream(stream); |
| 568 } | 576 } |
| 569 | 577 |
| 570 bool SctpDataMediaChannel::RemoveSendStream(uint32 ssrc) { | 578 bool SctpDataMediaChannel::RemoveSendStream(uint32 ssrc) { |
| 571 return ResetStream(ssrc); | 579 return ResetStream(ssrc); |
| 572 } | 580 } |
| 573 | 581 |
| 574 bool SctpDataMediaChannel::AddRecvStream(const StreamParams& stream) { | 582 bool SctpDataMediaChannel::AddRecvStream(const StreamParams& stream) { |
| 575 // SCTP DataChannels are always bi-directional and calling AddSendStream will | 583 // SCTP DataChannels are always bi-directional and calling AddSendStream will |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1029 } | 1037 } |
| 1030 case MSG_SCTPOUTBOUNDPACKET: { | 1038 case MSG_SCTPOUTBOUNDPACKET: { |
| 1031 rtc::scoped_ptr<OutboundPacketMessage> pdata( | 1039 rtc::scoped_ptr<OutboundPacketMessage> pdata( |
| 1032 static_cast<OutboundPacketMessage*>(msg->pdata)); | 1040 static_cast<OutboundPacketMessage*>(msg->pdata)); |
| 1033 OnPacketFromSctpToNetwork(pdata->data().get()); | 1041 OnPacketFromSctpToNetwork(pdata->data().get()); |
| 1034 break; | 1042 break; |
| 1035 } | 1043 } |
| 1036 } | 1044 } |
| 1037 } | 1045 } |
| 1038 } // namespace cricket | 1046 } // namespace cricket |
| OLD | NEW |