CS144's user-space TCP library
router.hh File Reference
#include "network_interface.hh"
#include <optional>
#include <queue>
Include dependency graph for router.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  AsyncNetworkInterface
 A wrapper for NetworkInterface that makes the host-side interface asynchronous: instead of returning received datagrams immediately (from the recv_frame method), it stores them for later retrieval. Otherwise, behaves identically to the underlying implementation of NetworkInterface. More...
class  Router
 A router that has multiple network interfaces and performs longest-prefix-match routing between them. More...