OFMessage helloMsg = builder.type("ofp_hello").build();
byte[] v = {127,127,127,127};
helloMsg.get("header").get("xid").set(v);
//getSender().tell(TcpMessage.write(ByteString.fromArray(builder.type("ofp_hello").build().binary())), getSelf());
getSender().tell(TcpMessage.write(ByteString.fromArray(helloMsg.binary())), getSelf());
this.state = State.CONNECTED;
log.info ("STATE: Connected to OF Switch version "+ builder.version());
// getSender().tell(TcpMessage.write(ByteString.fromArray(builder.type("ofp_switch_features_request").set("xid", "0xabba").build().binary())), getSelf());
getSender().tell(TcpMessage.write(ByteString.fromArray(builder.type("ofp_switch_features_request").build().binary())), getSelf());