lpr-b-2007-2008:mainchat
package chatMulticast; import java.net.InetAddress; import java.net.UnknownHostException; public class Chat { public static void main(String[] args) { try { InetAddress chatAddress = InetAddress.getByName(args[0]); int port = Integer.parseInt(args[1]); CopyIn copyIn = new CopyIn(chatAddress,port); CopyOut copyOut = new CopyOut(chatAddress,port); copyIn.start(); copyOut.start(); } catch (UnknownHostException e) { e.printStackTrace(); } } }
lpr-b-2007-2008/mainchat.txt · Ultima modifica: 19/09/2008 alle 14:08 (16 anni fa) da 127.0.0.1