#include "quiche/quic/test_tools/simulator/switch.h"
#include <cinttypes>
#include <memory>
#include <string>
#include <utility>
#include "absl/strings/str_cat.h"
namespace quic {
namespace simulator {
Switch::Switch(Simulator* simulator, std::string name,
SwitchPortNumber port_count, QuicByteCount queue_capacity) { … }
Switch::~Switch() { … }
Switch::Port::Port(Simulator* simulator, std::string name, Switch* parent,
SwitchPortNumber port_number, QuicByteCount queue_capacity)
: … { … }
void Switch::Port::AcceptPacket(std::unique_ptr<Packet> packet) { … }
void Switch::Port::EnqueuePacket(std::unique_ptr<Packet> packet) { … }
UnconstrainedPortInterface* Switch::Port::GetRxPort() { … }
void Switch::Port::SetTxPort(ConstrainedPortInterface* port) { … }
void Switch::Port::Act() { … }
void Switch::DispatchPacket(SwitchPortNumber port_number,
std::unique_ptr<Packet> packet) { … }
}
}