public class MsgEchoPeerTwo extends MsgEchoPeerBase
Sends one message when a connection is open and echoes back any received data to the other peer.
messageSize, peer, self
构造器和说明 |
---|
MsgEchoPeerTwo(java.net.InetSocketAddress self,
java.net.InetSocketAddress peer,
int messageSize) |
限定符和类型 | 方法和说明 |
---|---|
static void |
main(java.lang.String[] args) |
run