Mercurial > hg > RemoteEditor > REPSessionManager
view test/sematest/PutTester.java @ 220:216d64cd5f3a
*** empty log message ***
author | pin |
---|---|
date | Sun, 31 Aug 2008 11:19:59 +0900 |
parents | 827c439d0da4 |
children | 18d6a7140fa3 |
line wrap: on
line source
package test.sematest; import java.io.IOException; import rep.REP; import rep.REPCommand; import rep.channel.REPServerSocketChannel; import rep.channel.REPSocketChannel; public class PutTester extends Tester { public PutTester(String name, String _host, int _port) { super(name, _host, _port); } @Override public void sendCommand(REPSocketChannel<REPCommand> channel)throws IOException { REPCommand command = new REPCommand(); command.setCMD(REP.SMCMD_PUT); command.setString("put test"); channel.write(command); channel.read(); } public static void main(String[] args){ Thread tester = new PutTester("PutTester", "localhost", 8766); tester.start(); } }