Search in sources :

Example 6 with EzyMainEventsLoop

use of com.tvd12.ezyfoxserver.client.socket.EzyMainEventsLoop in project ezyfox-server-example by tvd12.

the class SimpleChatClient method main.

public static void main(String[] args) throws Exception {
    String host = "127.0.0.1";
    int port = 3005;
    if (args.length > 0)
        host = args[0];
    if (args.length > 1)
        port = Integer.parseInt(args[1]);
    SimpleChatClient client = new SimpleChatClient();
    client.connect(host, port);
    EzyMainEventsLoop mainEventsLoop = new EzyMainEventsLoop();
    mainEventsLoop.start();
}
Also used : EzyMainEventsLoop(com.tvd12.ezyfoxserver.client.socket.EzyMainEventsLoop)

Aggregations

EzyMainEventsLoop (com.tvd12.ezyfoxserver.client.socket.EzyMainEventsLoop)6 EzyClients (com.tvd12.ezyfoxserver.client.EzyClients)3 EzyTcpClient (com.tvd12.ezyfoxserver.client.EzyTcpClient)2 EzyUTClient (com.tvd12.ezyfoxserver.client.EzyUTClient)1 EzyWsClient (com.tvd12.ezyfoxserver.client.EzyWsClient)1