Exemple #1
0
        public void CreateUser(string userName, bool propagate)
        {
            PeerGroupID gid = this.netPeerGroup.PeerGroupID;

            PipeID pipeid = IDFactory.NewPipeID(gid);

            PipeAdvertisement adv = new PipeAdvertisement();

            adv.SetPipeID(pipeid);
            adv.Type = (propagate ? "JxtaPropagate" : "JxtaUnicast");
            adv.Name = "JxtaTalkUserName." + userName;
            adv.Desc = "created by JXTA .NET";

            discovery.Publish(adv);
        }