Sponge
CS144's user-space TCP library
|
Basic functionality for file descriptor adaptors. More...
#include <fd_adapter.hh>
Public Member Functions | |
const FdAdapterConfig & | config () const |
Get the current configuration. More... | |
FdAdapterConfig & | config_mut () |
Get the current configuration (mutable) More... | |
bool | listening () const |
Get the listening flag. More... | |
void | set_listening (const bool l) |
Set the listening flag. More... | |
void | tick (const size_t) |
Called periodically when time elapses. More... | |
Protected Member Functions | |
FdAdapterConfig & | config_mutable () |
Private Attributes | |
FdAdapterConfig | _cfg {} |
Configuration values. More... | |
bool | _listen = false |
Is the connected TCP FSM in listen state? More... | |
Basic functionality for file descriptor adaptors.
See TCPOverUDPSocketAdapter and TCPOverIPv4OverTunFdAdapter for more information.
Definition at line 16 of file fd_adapter.hh.
|
inline |
Get the current configuration.
Definition at line 35 of file fd_adapter.hh.
|
inline |
Get the current configuration (mutable)
Definition at line 39 of file fd_adapter.hh.
|
inlineprotected |
Definition at line 22 of file fd_adapter.hh.
|
inline |
Get the listening flag.
Definition at line 31 of file fd_adapter.hh.
|
inline |
Set the listening flag.
[in] | l | is the new value for the flag |
Definition at line 27 of file fd_adapter.hh.
|
inline |
Called periodically when time elapses.
Definition at line 42 of file fd_adapter.hh.
|
private |
Configuration values.
Definition at line 18 of file fd_adapter.hh.
|
private |
Is the connected TCP FSM in listen state?
Definition at line 19 of file fd_adapter.hh.