1 package org.opendaylight.controller.protocol_plugin.openflow.core.internal;
3 import java.util.ArrayList;
6 import org.openflow.protocol.OFFeaturesReply;
7 import org.openflow.protocol.OFMessage;
8 import org.openflow.protocol.statistics.OFDescriptionStatistics;
11 * Wrapper class to hold state for the OpenFlow switch connection
14 class OFChannelState {
17 * State for handling the switch handshake
19 protected enum HandshakeState {
26 * Received HELLO from switch
31 * We've received the features reply
32 * Waiting for Config and Description reply
37 * Switch is ready for processing messages
43 protected volatile HandshakeState hsState = HandshakeState.START;
44 protected boolean hasGetConfigReply = false;
45 protected boolean hasDescription = false;
46 protected boolean switchBindingDone = false;
48 protected OFFeaturesReply featuresReply = null;
49 protected OFDescriptionStatistics description = null;
50 protected List<OFMessage> queuedOFMessages = new ArrayList<OFMessage>();