[JXTA discuss] IP mobility
"Giorgos Georgakoudis" <[email protected]> Thu, 21 Jul 2005 22:44:35 +0300
| Newsgroups | gmane.comp.java.jxta.general |
|---|---|
| Message-ID | <005001c58e2c$9fbbfe10$0100000a@ggeorgakhome> |
Hello, Mohamed we had a conservation yesterday about how the network interface changes reflect on jxta. If I remembered correctly on direct connections you mentioned that the jxta java binding cannot cope with ip changes but using a relay peer there is no problem. Please correct me if I am wrong. I created a test program where there is PipeListener and a PipeSender. Without a relay peer I started the communication (PipeSender sends a hello message every 2 seconds). Then I disconnected and reconnected the PipeListener (observing an IP change) and it works! The only "trick" I used is that a create an OutputPipe for every hello message I sent using createOutputPipe() in PipeService with a timeout that retries when it fails to create one using the same pipe advertisement that I discovered before otherwise by creating one OutputPipe since the beginning of the comm I would get an exception saying Pipe Closed. So internally Jxta routing protocol gets informed about the network interface changes for a give peer id, right? Best regards, Giorgis Georgakoudis