Code example for MulticastSocket

Methods: joinGroup

0
			} 
	} 
 
	public void joinChat() { 
		try { 
			multicast.joinGroup(grupo);
		} catch (UnknownHostException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} 
	} 
	 
	public void leaveChat() { 
		try { 
			multicast.leaveGroup(grupo);
		} catch (UnknownHostException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
Stop searching for code, let great code find you!  Add Codota to your java IDE