tags:

views:

37

answers:

0

I have a simple WCF-based P2P application that essentially allows users to chat via the command line. (This is a proof of concept app.) It uses PNRP for name resolution.

When each console is started, it creates a new self hosted instance of the "P2PService". It then creates a nother instance of the P2PService, establishes a duplex channel, and finally calls the "JoinMesh" method, which should print out on everybody's screen "MachineName has joined the mesh." It allows the user to enter text which is then sent via the "SendMessage" method to all members of the mesh. Finally, when the console is closed, the "LeaveMesh" method annouces to the mesh that the machine has left.

The SendMessage and LeaveMesh calls seem to work perfectly, but the JoinMesh call happens on the peers. I've tried also adding an "InitMesh" call, which does nothing but just tries to "prime" the mesh so that subsequent calls will work... and that has no effect.

Ideas?