jiazx0107
2025-09-01 ce4f9b9f72a4269a1f25812dadd59bfb92c7b3cf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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!!");
    }
 
}