super(); this.groupString = groupString; this.group = InetAddress.getByName(groupString); socket = new MulticastSocket(Constants.portNumber); socket.joinGroup(group);
stopListening = true; socket.leaveGroup(group); socket.close();