示例#1
0
        internal PipeIDImpl(PeerGroupID pg) : base()
        {
            IntPtr ret = new IntPtr();

            Errors.check(jxta_id_pipeid_new_1(ref ret, pg.self));
            this.self = ret;
        }
示例#2
0
 /// <summary>
 /// Constructs a new random pipe id in the peer group specified. The id
 /// will be of the same id format as the peer group id.
 /// </summary>
 /// <param name="pg">the group in which the pipe id will be created. the id format
 /// used for the pipe id will also match the id format of this group id.</param>
 public static PipeID NewPipeID(PeerGroupID pg)
 {
     return(new PipeIDImpl(pg));
 }
示例#3
0
 static PeerGroupID()
 {
     defaultNetPeerGroupID = new PeerGroupIDImpl(jxta_get_id_defaultNetPeerGroupID());
     worldPeerGroupID      = new PeerGroupIDImpl(jxta_get_id_worldNetPeerGroupID());
 }