package com.qserver.modle;
import java.util.HashMap;
import java.util.Iterator;
public class LogSerConThread {
public static HashMap hmLogTh=new HashMap<String, ServerConThread>();
public static void addConThread(String userId,ServerConThread serConTh){
hmLogTh.put(userId, serConTh);
}
public static ServerConThread getConThread(String userId){
return (ServerConThread)hmLogTh.get(userId);
}
//返回所有在线用户
public static void returnOnlineFriendsId(){
Iterator it=hmLogTh.keySet().iterator();
String res="";
while(it.hasNext()){
res+=it.next().toString()+" ";
}
}
}