Test Virtual Router
Test implementation of a VirtualRouter for use with test devices.
Provides dummy routing behavior and predictable network parameters for testing purposes.
Properties
Functions
Link copied to clipboard
open override fun allocateUdpPortOrThrow(virtualDatagramSocketImpl: VirtualDatagramSocketImpl, portNum: Int): Int
Allocate a UDP port or throw exception if unavailable.
Link copied to clipboard
Deallocate a port.
Link copied to clipboard
Look up the next hop for a chain socket.
Link copied to clipboard
Returns a constant MMCP message ID for testing
Link copied to clipboard
open override fun route(packet: VirtualPacket, datagramPacket: DatagramPacket?, virtualNodeDatagramSocket: VirtualNodeDatagramSocket?)
Route a packet.