1 14 15 package dateserver; 16 17 import java.net.*; 18 import java.io.*; 19 import java.util.Date ; 20 import org.quickserver.net.server.*; 21 22 public class ObjectHandler implements ClientObjectHandler { 23 24 public void handleObject(ClientHandler handler, Object command) 25 throws SocketTimeoutException, IOException { 26 27 Date gotDate = (Date ) command; 28 handler.sendSystemMsg("Got Client Date : " + gotDate); 29 handler.setDataMode(DataMode.STRING, DataType.IN); 31 } 32 } 33 | Popular Tags |