Sponge
CS144's user-space TCP library
|
Public Member Functions | |
Network () | |
Host & | host (const string &name) |
void | simulate () |
void | simulate_physical_connections () |
Private Member Functions | |
void | deliver (const string &src_name, const queue< EthernetFrame > &src, const string &dst_name, AsyncNetworkInterface &dst) |
void | exchange_frames (const string &x_name, AsyncNetworkInterface &x, const string &y_name, AsyncNetworkInterface &y) |
void | exchange_frames (const string &x_name, AsyncNetworkInterface &x, const string &y_name, AsyncNetworkInterface &y, const string &z_name, AsyncNetworkInterface &z) |
Private Attributes | |
std::unordered_map< string, Host > | _hosts {} |
Router | _router {} |
size_t | default_id |
size_t | eth0_id |
size_t | eth1_id |
size_t | eth2_id |
size_t | hs4_id |
size_t | mit5_id |
size_t | uun3_id |
Definition at line 150 of file network_simulator.cc.
|
inline |
Definition at line 208 of file network_simulator.cc.
|
inlineprivate |
Definition at line 193 of file network_simulator.cc.
|
inlineprivate |
Definition at line 158 of file network_simulator.cc.
|
inlineprivate |
Definition at line 171 of file network_simulator.cc.
Definition at line 260 of file network_simulator.cc.
|
inline |
Definition at line 249 of file network_simulator.cc.
|
inline |
Definition at line 235 of file network_simulator.cc.
|
private |
Definition at line 156 of file network_simulator.cc.
|
private |
Definition at line 152 of file network_simulator.cc.
|
private |
Definition at line 154 of file network_simulator.cc.
|
private |
Definition at line 154 of file network_simulator.cc.
|
private |
Definition at line 154 of file network_simulator.cc.
|
private |
Definition at line 154 of file network_simulator.cc.
|
private |
Definition at line 154 of file network_simulator.cc.
|
private |
Definition at line 154 of file network_simulator.cc.
|
private |
Definition at line 154 of file network_simulator.cc.