Code example for MulticastSocket

Methods: leaveGroup

0
		} 
	} 
	 
	public void leaveChat() { 
		try { 
			multicast.leaveGroup(grupo);
		} catch (UnknownHostException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} 
	} 
 
	public MulticastSocket getSocket() {
		return multicast;
	} 
	 
	public InetAddress getGrupo() {
		return grupo;
	}