webrtc_m130/webrtc/p2p/base/candidatepairinterface.h
Taylor Brandstetter 6bb1ef2b86 Fixing bug where Connection drops packets when presumed writable.
The "should I simulate EWOULDBLOCK?" determination now happens
solely in P2PTransportChannel. This also fixes a bug where the
"last packet id" was set even if no packet was sent.

R=honghaiz@webrtc.org, pthatcher@webrtc.org

Review URL: https://codereview.webrtc.org/2099783002 .

Cr-Commit-Position: refs/heads/master@{#13307}
2016-06-28 01:09:10 +00:00

29 lines
825 B
C++

/*
* Copyright 2016 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#ifndef WEBRTC_P2P_BASE_CANDIDATEPAIRINTERFACE_H_
#define WEBRTC_P2P_BASE_CANDIDATEPAIRINTERFACE_H_
namespace cricket {
class Candidate;
class CandidatePairInterface {
public:
virtual ~CandidatePairInterface() {}
virtual const Candidate& local_candidate() const = 0;
virtual const Candidate& remote_candidate() const = 0;
};
} // namespace cricket
#endif // WEBRTC_P2P_BASE_CANDIDATEPAIRINTERFACE_H_