|
ZeroSDN Controller
1.0
A modular distributed Software-Defined Network Controller
|
#include <SwitchConnectionUtil.h>
Public Types | |
| enum | Status { NONE, HELLO_FAILED, WRONG_OPENFLOW_VERSION, FEATURE_REQUEST_FAILED, SUCCESS } |
| Possible outcomes of a handshake. More... | |
Public Member Functions | |
| HandshakeResult (const Status &status, const of_version_t &switchOpenFlowVersion, const uint64_t switchId) | |
| std::string | versionToString () |
| std::string | toString () |
Public Attributes | |
| Status | status = NONE |
| Outcome of the handshake. More... | |
| of_version_t | switchOpenFlowVersion = OF_VERSION_UNKNOWN |
| version of the switch More... | |
| uint64_t | switchId = 0 |
| switchId of the switch More... | |
Object representing the outcome of a handshake with an OpenFlow switch.
|
inline |
Constructs a HandshakeResult.
| status | the outcome of the handshake. |
| ofVersion | the OpenFlow version of the switch (only if the status is >= FEATURE_REQUEST_FAILED. else OF_VERSION_UNKNOWN) |
| switchId | the switchId of the switch (only if the status is SUCCESS. else 0) |
|
inline |
returns a textual representation of this HandshakeResult.
|
inline |
Enum to string helper.
| uint64_t SwitchConnectionUtil::HandshakeResult::switchId = 0 |
switchId of the switch
| of_version_t SwitchConnectionUtil::HandshakeResult::switchOpenFlowVersion = OF_VERSION_UNKNOWN |
version of the switch