Strumenti Utente

Strumenti Sito


lpr-b: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/mainchat.txt · Ultima modifica: 23/11/2007 alle 13:56 (12 anni fa) da Marco Danelutto