This commit was manufactured by cvs2svn to create tag 'buildscript'.
[IRC.git] / Robust / src / Benchmarks / ChatTag / ChatSocket.java
diff --git a/Robust/src/Benchmarks/ChatTag/ChatSocket.java b/Robust/src/Benchmarks/ChatTag/ChatSocket.java
deleted file mode 100644 (file)
index 9923f91..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-public class ChatSocket {
-    flag Initialized;
-    flag ProcessRoom;
-    flag InRoom;
-    Room room;
-    String roomrequest;
-    Socket sock;
-
-    public ChatSocket() {
-    }
-
-    public boolean processRead(Socket s) {
-        byte buffer[]=new byte[1024];
-        int length=s.read(buffer);
-        String st=new String(buffer);
-        String curr=st.subString(0, length);
-        if (roomrequest!=null) {
-            StringBuffer sb=new StringBuffer(roomrequest);
-            sb.append(curr);
-            curr=sb.toString();
-        }
-        roomrequest=curr;
-        if (roomrequest.indexOf("\n")>=0) {
-           return true;
-        }
-        return false;
-    }
-    public void processRoom(RoomObject ro) {
-       ro.getChatRoom(roomrequest).addParticipant(this);
-    }
-}