Package com.captiveimagination.jgn.event

Examples of com.captiveimagination.jgn.event.DebugListener


  public ChatClient(Client client) throws Exception {
    JGNclient = client.getJGNClient();
    JGN.register(PlayerChatMessage.class);

    JGNclient.addMessageListener(this);
    JGNclient.addMessageListener(new DebugListener("ChatClient>"));
   
    nickname = JOptionPane.showInputDialog("Connection established to server\n\nPlease enter the name you wish to use?");
    initGUI();
  }
View Full Code Here


    InetSocketAddress reliableAddress = new InetSocketAddress(InetAddress.getLocalHost(), 0);
    InetSocketAddress fastAddress = new InetSocketAddress(InetAddress.getLocalHost(), 0);
    client = new JGNClient(reliableAddress, fastAddress);
    client.addMessageListener(this);
    client.addMessageListener(new DebugListener("ChatClient>"));
    JGN.createThread(client).start();

    InetSocketAddress reliableServerAddress = new InetSocketAddress(InetAddress.getByName("10.100.1.49"), 1100);
    InetSocketAddress fastServerAddress = new InetSocketAddress(InetAddress.getByName("10.100.1.49"), 2000);
View Full Code Here

TOP

Related Classes of com.captiveimagination.jgn.event.DebugListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.