1 public class ChatSocket {
12 public boolean processRead(Socket s) {
13 byte buffer[]=new byte[1024];
14 int length=s.read(buffer);
15 String st=new String(buffer);
16 String curr=st.subString(0, length);
17 if (roomrequest!=null) {
18 StringBuffer sb=new StringBuffer(roomrequest);
23 if (roomrequest.indexOf("\n")>=0) {
28 public void processRoom(RoomObject ro) {
29 ro.getChatRoom(roomrequest).addParticipant(this);