FileDocCategorySizeDatePackage
ListenerThread.javaAPI DocExample667Tue Dec 12 18:58:44 GMT 2000bingo.shared

ListenerThread

public abstract class ListenerThread extends Thread

Fields Summary
boolean
stopListening
MulticastSocket
socket
private InetAddress
group
private String
groupString
Constructors Summary
public ListenerThread(String groupString)


      
          
    
	super();

	this.groupString = groupString;

        this.group = InetAddress.getByName(groupString);
        socket = new MulticastSocket(Constants.portNumber);
	socket.joinGroup(group);
    
Methods Summary
public voidstopListening()

	stopListening = true;
	socket.leaveGroup(group);
	socket.close();