std::span<const uint8_t> TestPort::last_stun_buf() { if (!last_stun_buf_) return std::span<const uint8_t>(); return *last_stun_buf_;
}
IceMessage* TestPort::last_stun_msg() { return last_stun_msg_.get();
} int TestPort::last_stun_error_code() { int code = 0; if (last_stun_msg_) { const StunErrorCodeAttribute* error_attr = last_stun_msg_->GetErrorCode(); if (error_attr) {
code = error_attr->code();
}
} return code;
}
void TestPort::PrepareAddress() { // Act as if the socket was bound to the best IP on the network, to the // first port in the allowed range.
SocketAddress addr(Network()->GetBestIP(), min_port());
AddAddress(addr, addr, SocketAddress(), "udp", "", "", type(),
ICE_TYPE_PREFERENCE_HOST, 0, "", true);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.