public void addSlave(Socket s) { if (s == null) { return; } ConnectionInfo ci = new ConnectionInfo(); ci.setSocket(s); addSlave(s, ci); }
public void returnSlave(ConnectionInfo slave) throws IOException { m_hosts.add(slave.getSocket()); // ConnectionInfo ci = m_connectionInfos.remove(slave.socket); // ci.oos.close(); // ci.ois.close(); // addSlave(slave.socket); }