Mercurial > hg > RemoteEditor > REPSessionManager
view test/sematest/PutTester.java @ 227:cbd67817e9cd
*** empty log message ***
author | pin |
---|---|
date | Sun, 31 Aug 2008 13:55:39 +0900 |
parents | 18d6a7140fa3 |
children | f816e0cbe6fd |
line wrap: on
line source
package test.sematest; import java.io.IOException; import rep.REP; import rep.REPCommand; 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("PutTest.txt"); channel.write(command); channel.read(); } public static void main(String[] args){ Thread tester = new PutTester("PutTester", "localhost", 8766); tester.start(); } }