/** * Update the channels state. Only called from the state machine. * * @param state * @throws IOException */ private void setState(OFChannelState state) throws IOException { this.state = state; state.logState(); state.enterState(); }