| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 // Send data down this channel (will be wrapped as SCTP packets then given to | 161 // Send data down this channel (will be wrapped as SCTP packets then given to |
| 162 // sctp that will then post the network interface by OnMessage). | 162 // sctp that will then post the network interface by OnMessage). |
| 163 // Returns true iff successful data somewhere on the send-queue/network. | 163 // Returns true iff successful data somewhere on the send-queue/network. |
| 164 virtual bool SendData(const SendDataParams& params, | 164 virtual bool SendData(const SendDataParams& params, |
| 165 const rtc::Buffer& payload, | 165 const rtc::Buffer& payload, |
| 166 SendDataResult* result = NULL); | 166 SendDataResult* result = NULL); |
| 167 // A packet is received from the network interface. Posted to OnMessage. | 167 // A packet is received from the network interface. Posted to OnMessage. |
| 168 virtual void OnPacketReceived(rtc::Buffer* packet, | 168 virtual void OnPacketReceived(rtc::Buffer* packet, |
| 169 const rtc::PacketTime& packet_time); | 169 const rtc::PacketTime& packet_time); |
| 170 | 170 |
| 171 virtual void OnPacketSent(const rtc::SentPacket& packet_sent) {} |
| 172 |
| 171 // Exposed to allow Post call from c-callbacks. | 173 // Exposed to allow Post call from c-callbacks. |
| 172 rtc::Thread* worker_thread() const { return worker_thread_; } | 174 rtc::Thread* worker_thread() const { return worker_thread_; } |
| 173 | 175 |
| 174 // Many of these things are unused by SCTP, but are needed to fulfill | 176 // Many of these things are unused by SCTP, but are needed to fulfill |
| 175 // the MediaChannel interface. | 177 // the MediaChannel interface. |
| 176 virtual void OnRtcpReceived(rtc::Buffer* packet, | 178 virtual void OnRtcpReceived(rtc::Buffer* packet, |
| 177 const rtc::PacketTime& packet_time) {} | 179 const rtc::PacketTime& packet_time) {} |
| 178 virtual void OnReadyToSend(bool ready) {} | 180 virtual void OnReadyToSend(bool ready) {} |
| 179 | 181 |
| 180 void OnSendThresholdCallback(); | 182 void OnSendThresholdCallback(); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 StreamSet queued_reset_streams_; | 249 StreamSet queued_reset_streams_; |
| 248 StreamSet sent_reset_streams_; | 250 StreamSet sent_reset_streams_; |
| 249 | 251 |
| 250 // A human-readable name for debugging messages. | 252 // A human-readable name for debugging messages. |
| 251 std::string debug_name_; | 253 std::string debug_name_; |
| 252 }; | 254 }; |
| 253 | 255 |
| 254 } // namespace cricket | 256 } // namespace cricket |
| 255 | 257 |
| 256 #endif // TALK_MEDIA_SCTP_SCTPDATAENGINE_H_ | 258 #endif // TALK_MEDIA_SCTP_SCTPDATAENGINE_H_ |
| OLD | NEW |