public static void main(String[] args){
  try {
    int serverPort=Integer.parseInt(System.getProperty("net.floodlightcontroller.packetstreamer.port","9090"));
    TTransport transport;
    transport=new TFramedTransport(new TSocket("localhost",serverPort));
    transport.open();
    TProtocol protocol=new TBinaryProtocol(transport);
    PacketStreamer.Client client=new PacketStreamer.Client(protocol);
    sendPackets(client,(short)2,OFMessageType.PACKET_IN,true);
    log.debug("Terminate session1");
    client.terminateSession("session1");
    transport.close();
  }
 catch (  TException x) {
    x.printStackTrace();
  }
}

public static void main ( String [ ] args ) { try { int serverPort = Integer . parseInt ( System . getProperty ( "net.floodlightcontroller.packetstreamer.port" , "9090" ) ) ; TTransport transport ; transport = new TFramedTransport ( new TSocket ( "localhost" , serverPort ) ) ; transport . open ( ) ; TProtocol protocol = new TBinaryProtocol ( transport ) ; PacketStreamer . Client client = new PacketStreamer . Client ( protocol ) ; sendPackets ( client , ( short ) 2 , OFMessageType . PACKET_IN , true ) ; log . debug ( "Terminate session1" ) ; client . terminateSession ( "session1" ) ; transport . close ( ) ; } catch ( TException x ) { x . printStackTrace ( ) ; } }
main function entry point ;
