Re: Peer-Discovery in own Group

"Daniel B." <[email protected]>
Newsgroups gmane.comp.java.jxta.user
Message-ID <[email protected]>
Cool idea for blocking until RDV connect! I'll add it to the wiki at  
http://wiki.java.net/bin/view/Jxta/IsJXTAWorking


On Jul 27, 2005, at 6:54 AM, Joachim Goetze wrote:

>
> rendezvouz = this.netPeerGroup.getRendezVousService();
> rendezvouz.addListener(this);
> if (!rendezvouz.isConnectedToRendezVous()) {
>     try {
>         wait();
>     } catch(InterruptedException ex) {}
> }
>
> This code example waits until you are connected to a rendezvouz.
>
> public synchronized void rendezvousEvent(RendezvousEvent event) {
> if ((event.getType() == RendezvousEvent.RDVCONNECT) ||
>     (event.getType() == RendezvousEvent.RDVRECONNECT)) {
>         notify();
> }
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.