Home | History | Annotate | Download | only in base

Lines Matching refs:username

258   // The initial packet should have a username (which identifies the binding).
262 LOG(LS_WARNING) << "Dropping packet: no username";
268 std::string username(username_attr->bytes(), length);
272 BindingMap::iterator biter = bindings_.find(username);
274 LOG(LS_WARNING) << "Dropping packet: no binding with username";
297 rtc::AsyncPacketSocket* socket, std::string* username,
306 // The initial packet should have a username (which identifies the binding).
310 SendStunError(*msg, socket, remote_addr, 432, "Missing Username", "");
314 // Record the username if requested.
315 if (username)
316 username->append(username_attr->bytes(), username_attr->length());
329 std::string username;
330 if (!HandleStun(bytes, size, ap.source(), socket, &username, &request))
346 // Find or create the binding for this username.
350 BindingMap::iterator biter = bindings_.find(username);
364 binding = new RelayServerBinding(this, username, "0", lifetime);
366 bindings_[username] = binding;
369 LOG(LS_INFO) << "Added new binding " << username << ", "
389 std::string username;
391 int_conn->socket(), &username, &request))
394 // Make sure the username is the one were were expecting.
395 if (username != int_conn->binding()->username()) {
521 BindingMap::iterator iter = bindings_.find(binding->username());
526 LOG(LS_INFO) << "Removed binding " << binding->username() << ", "
654 const std::string& username,
658 username_(username),