You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
660 B
26 lines
660 B
package client;
|
|
|
|
import client.log.EventLogger;
|
|
import client.net.Client;
|
|
|
|
import java.io.BufferedReader;
|
|
import java.io.InputStreamReader;
|
|
|
|
public class Main {
|
|
|
|
public static EventLogger console;
|
|
|
|
public static void main(String[] args) {
|
|
System.out.println("Client!");
|
|
console = new EventLogger(System.out);
|
|
Client c = new Client("localhost", 5001);
|
|
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
|
|
while (true) {
|
|
try {
|
|
c.write(r.readLine().getBytes());
|
|
} catch (Throwable e) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
}
|
|
}
|