/** * Passes a message to the pool which will then broadcast it to all connected clients. * * @param msg the message to be broadcasted */ public void broadcastInfoToClients(String msg) { if (pool != null) { pool.broadcast(NanoComm.strInfo(NanoComm.INFO_MSG_TO_CLIENT) + " " + msg); } }
/** * Passes a message to the pool which will apss it further to the remote experiment. * * @param msg */ public void sendToRemExp(String msg) { Debg.print("sending to remexp: " + msg); if (pool != null) { pool.sendToRemExp(msg); } }
/** * Passes a message to the pool which will then broadcast it to all connected clients. * * @param msg the message to be broadcasted */ public void broadcastToClients(String msg) { if (pool != null) { pool.broadcast(msg); } }