diff test/sematest/PutTester.java @ 218:827c439d0da4

*** empty log message ***
author pin
date Sun, 31 Aug 2008 07:53:28 +0900
parents
children 216d64cd5f3a
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/sematest/PutTester.java	Sun Aug 31 07:53:28 2008 +0900
@@ -0,0 +1,32 @@
+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("put test");
+		channel.write(command);
+		
+		channel.read();
+
+	}
+	
+	public static void main(String[] args){
+		Thread tester = new PutTester("PutTester", "localhost", 8766);
+		tester.start();
+	}
+
+}