Ignore:
Timestamp:
May 17, 2010, 2:38:37 PM (12 years ago)
Author:
Paul Lelgemann
Message:

o Extracted common classes from PeerToPeerBase plugin into new PeerToPeer plugin as a preparation for the new P2P proxy
o Modified directory properties to ignore the CrypBuild directory

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1010bin
        1111obj
         12CrypBuild
  • trunk/CrypP2P/P2PManager.cs

    r1378 r1433  
    2727using Cryptool.P2P.Helper;
    2828using Cryptool.P2P.Internal;
     29using Cryptool.Plugins.PeerToPeer;
     30using Cryptool.Plugins.PeerToPeer.Internal;
    2931
    3032namespace Cryptool.P2P
     
    5153
    5254        #region Private variables
    53         private P2PBase P2PBase { get; set; }
     55        public P2PBase P2PBase { get; set; }
    5456        private P2PSettings P2PSettings { get; set; }
    5557        private ButtonDropDown P2PButton { get; set; }
     
    116118        }
    117119
     120        public PeerId GetPeerId(out string userName)
     121        {
     122            return P2PBase.GetPeerID(out userName);
     123        }
     124
    118125        #region DHT operations
    119126        // TODO add error handling, if P2P if not connected
    120127        public static bool Store(string key, byte[] data)
     128        {
     129            return INSTANCE.P2PBase.SynchStore(key, data);
     130        }
     131
     132         public static bool Store(string key, string data)
    121133        {
    122134            return INSTANCE.P2PBase.SynchStore(key, data);
Note: See TracChangeset for help on using the changeset viewer.