1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| package com.ard.utils.netty.tcp;
|
| public class BootNettyClientThread extends Thread {
|
| private final int port;
| private final String host;
|
| public BootNettyClientThread(String host,int port){
| this.port = port;
| this.host = host;
| }
|
| public void run() {
| try {
| new BootNettyClient().connect(host,port);
| } catch (Exception e) {
| throw new RuntimeException(e);
| }
| }
| }
|
|