Lines Matching defs:port_index
80 int GetPort(int port_index) {
81 return kPort0 + (port_index * kPortStep);
84 std::string GetPortString(int port_index) {
85 return rtc::ToString(GetPort(port_index));
88 // Only works for port_index < 10, which is fine for our purposes.
89 std::string GetUsername(int port_index) {
90 return "username" + std::string(8, rtc::ToString(port_index)[0]);
93 // Only works for port_index < 10, which is fine for our purposes.
94 std::string GetPassword(int port_index) {
95 return "password" + std::string(8, rtc::ToString(port_index)[0]);
158 std::string P2pCandidateXml(const std::string& name, int port_index) {
161 std::string username = GetUsername(port_index);
173 " port=\"" + GetPortString(port_index) + "\""
178 " password=\"" + GetPassword(port_index) + "\""