| Index: webrtc/p2p/base/port.cc
|
| diff --git a/webrtc/p2p/base/port.cc b/webrtc/p2p/base/port.cc
|
| index a353dc2a2f0a75975af37fd2b1d5a2d3ae6cd93f..fbc64f2e0a784175a2f1f94ae25bac4aca3b710a 100644
|
| --- a/webrtc/p2p/base/port.cc
|
| +++ b/webrtc/p2p/base/port.cc
|
| @@ -219,6 +219,19 @@ Port::~Port() {
|
| delete list[i];
|
| }
|
|
|
| +void Port::SetIceParameters(int component,
|
| + const std::string& username_fragment,
|
| + const std::string& password) {
|
| + component_ = component;
|
| + ice_username_fragment_ = username_fragment;
|
| + password_ = password;
|
| + for (Candidate& c : candidates_) {
|
| + c.set_component(component);
|
| + c.set_username(username_fragment);
|
| + c.set_password(password);
|
| + }
|
| +}
|
| +
|
| Connection* Port::GetConnection(const rtc::SocketAddress& remote_addr) {
|
| AddressMap::const_iterator iter = connections_.find(remote_addr);
|
| if (iter != connections_.end())
|
|
|