Beispiel #1
0
        public void AnnouncePeerEncode()
        {
            Node n = new MonoTorrent.Dht.Node(NodeId.Create(), null);
            n.Token = token;
            AnnouncePeer m = new AnnouncePeer(id, infohash, 6881, token);
            m.TransactionId = transactionId;

            Compare(m, "d1:ad2:id20:abcdefghij01234567899:info_hash20:mnopqrstuvwxyz1234564:porti6881e5:token8:aoeusnthe1:q13:announce_peer1:t2:aa1:y1:qe");
        }
Beispiel #2
0
        public void AnnouncePeerEncode()
        {
            Node n = new MonoTorrent.Dht.Node(NodeId.Create(), null);

            n.Token = token;
            AnnouncePeer m = new AnnouncePeer(id, infohash, 6881, token);

            m.TransactionId = transactionId;

            Compare(m, "d1:ad2:id20:abcdefghij01234567899:info_hash20:mnopqrstuvwxyz1234564:porti6881e5:token8:aoeusnthe1:q13:announce_peer1:t2:aa1:y1:qe");
        }