[JXTA discuss] JxtaBiDiPipe synchronization
Michele Amoretti <[email protected]> Thu, 19 May 2005 15:02:53 +0200
| Newsgroups | gmane.comp.java.jxta.general |
|---|---|
| Message-ID | <[email protected]> |
Hello, I'd like to know how two edge peers, or two rdv peers, which know each other's ID and have the same Pipe advertisement, can communicate through a BiDiPipe open on that Pipe adv. Synchronization is easy when one peer is edge, and it is connected to the other peer which is rdv. Otherwise it seems to be difficult to guarantee the following operations are executed in the correct order: 1) one peer invokes JxtaServerPipe.accept() which returns a JxtaBiDiPipe after remote connection 2) the other peer invokes JxtaBiDiPipe.connect() Thank you -- Michele Amoretti, Ph.D. Student Dip. di Ingegneria dell'Informazione, Università degli Studi di Parma Parco Area delle Scienze, 181A I-43100 Parma Italy Phone: +39-(0521)-906147 Fax: +39-(0521)-905723 Home page: http://dsg.ce.unipr.it/People/amoretti/Amoretti.html