Iterator<Entry<String, Connection>> itc = conns.entrySet().iterator();
while (itc.hasNext()) {
Entry<String, Connection> e = itc.next();
String host = e.getKey();
Connection conn = e.getValue();
XixiSocket socket = manager.getSocketByHost(host);
if (socket != null) {
conn.init(socket);
}
}