/** * send a description state request. * @throws IOException */ private void sendHandshakeDescriptionStatsRequest() throws IOException { // Get Description to set switch-specific flags OFFactory factory = (ofVersion == OFVersion.OF_13) ? factory13 : factory10; OFDescStatsRequest dreq = factory .buildDescStatsRequest() .setXid(handshakeTransactionIds--) .build(); channel.write(Collections.singletonList(dreq)); }
/** * send a description state request */ private void sendHandshakeDescriptionStatsRequest() { // Send description stats request to set switch-specific flags OFDescStatsRequest descStatsRequest = factory.buildDescStatsRequest() .setXid(handshakeTransactionIds--) .build(); mainConnection.write(descStatsRequest); }
/** * send a description state request * * @throws IOException */ private void sendHandshakeDescriptionStatsRequest() throws IOException { // Get Description to set switch-specific flags OFFactory factory = (ofVersion == OFVersion.OF_13) ? factory13 : factory10; OFDescStatsRequest dreq = factory .buildDescStatsRequest() .setXid(handshakeTransactionIds--) .build(); channel.write(Collections.singletonList(dreq)); }
/** * send a description state request. * @throws IOException */ private void sendHandshakeDescriptionStatsRequest() throws IOException { // Get Description to set switch-specific flags log.debug("Sending DESC_STATS_REQUEST to {}", channel.remoteAddress()); OFDescStatsRequest dreq = factory .buildDescStatsRequest() .setXid(handshakeTransactionIds--) .build(); channel.writeAndFlush(Collections.singletonList(dreq)); }