Should Pipe ID be unique for each peer?
Say, I have a private network and n number of peers are part of the nw. Can all peers need to have the same Pipe ID or do they need different one?
P1 wants to send a file to P2 via JxtaSockets. P2 starts a JxtaServerSocket with pipe ID, say "abc", does P1 create a JxtaSocket with same pipe id "abc" or does it create its own pipe ID?
Once the file tranfer is completed in scenario 1, the sockets are closed. Now after some time P2 wants to send a file to P1, then I am assuming that P1 should have created a JxtaServerSocket and P2 should create the JxtaSocket. Now, is the pipe ID same as before or can they be different?
P1 also wants to receive files from other peers, say P3,P4... So
1. Does it create a JxtaServerSocket for each peer?
2. If yes, then does each JxtaServerSocket has a unique pipe ID, or is it the same?
How are these pipe ID's published? I could not find any examples of publishing and discovering pipe advertisements.
Any pointers will be appreciated.