package com.ld.io.netty.client;
|
|
import java.io.UnsupportedEncodingException;
|
|
public class IoClientTest {
|
public static void main(String[] args) throws InterruptedException, UnsupportedEncodingException {
|
TcpClient tcpClient = new TcpClient();
|
tcpClient.start();
|
Thread.sleep(1000L);
|
|
String msg = "<FZZY>hello<END>";
|
tcpClient.send(msg.getBytes());
|
System.out.println("send complete!!");
|
}
|
|
}
|