1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package io.netty.example.udt.echo.rendezvous;
17
18 import io.netty.util.internal.SocketUtils;
19
20 import java.net.InetSocketAddress;
21
22
23
24
25
26
27
28 public class MsgEchoPeerOne extends MsgEchoPeerBase {
29
30 public MsgEchoPeerOne(final InetSocketAddress self, final InetSocketAddress peer, final int messageSize) {
31 super(self, peer, messageSize);
32 }
33
34 public static void main(final String[] args) throws Exception {
35 final int messageSize = 64 * 1024;
36 final InetSocketAddress self = SocketUtils.socketAddress(Config.hostOne, Config.portOne);
37 final InetSocketAddress peer = SocketUtils.socketAddress(Config.hostTwo, Config.portTwo);
38 new MsgEchoPeerOne(self, peer, messageSize).run();
39 }
40 }