200201202203204205206207208209
message.setReceiver(hostName); message.setReceiverIP(hostIP); message.setSender(Globals.localHostName); message.setSenderIP(Globals.localIP); message.setToAll(massive); new Thread(new MessageSender(message)).start(); if (!massive) frame.dispose(); }
3536373839404142
errorMessage.setReceiverIP(Globals.localIP); errorMessage.setMessageContent(status); errorMessage.setMessageKind(Constants.MESSAGE_KIND_STATUS); errorMessage.setToAll(false); new Thread(new MessageSender(errorMessage)).start(); }
273274275276277278279280281
message.setReceiverIP(host); message.setSender(Globals.localHostName); message.setSenderIP(Globals.localIP); message.setToAll(massive); new Thread(new MessageSender(message)).start(); if (!massive) textToSend.setText(null); }