[Aversa-commits] aversa/lib/net/bittorrent ChangeLog TODO tracker.rb
teamikl at rubyforge.org
teamikl at rubyforge.org
Thu Sep 16 10:36:33 EDT 2004
Update of /var/cvs/aversa/aversa/lib/net/bittorrent
In directory rubyforge.org:/tmp/cvs-serv9261/lib/net/bittorrent
Modified Files:
ChangeLog TODO tracker.rb
Log Message:
Added module function Net::BitTorrent::Tracker#compact(addr, port)
Index: TODO
===================================================================
RCS file: /var/cvs/aversa/aversa/lib/net/bittorrent/TODO,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TODO 4 Sep 2004 17:28:29 -0000 1.1
--- TODO 16 Sep 2004 14:36:27 -0000 1.2
***************
*** 1,11 ****
* TODO *
-
! - Documentations.
- Nat check function.
- MockIO and MockSocket for UnitTest.
- Convert to utf-8 for .utf-8 surffixed fields of MetaInfo file.
- Download/Uploade rate, RawServer, Scheduler classes.
- - BEncoding.c
- Add test cases for MetaInfo and Storage.
--- 1,9 ----
* TODO *
! - Tutorial
- Nat check function.
- MockIO and MockSocket for UnitTest.
- Convert to utf-8 for .utf-8 surffixed fields of MetaInfo file.
- Download/Uploade rate, RawServer, Scheduler classes.
- Add test cases for MetaInfo and Storage.
Index: tracker.rb
===================================================================
RCS file: /var/cvs/aversa/aversa/lib/net/bittorrent/tracker.rb,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** tracker.rb 14 Sep 2004 20:44:19 -0000 1.3
--- tracker.rb 16 Sep 2004 14:36:27 -0000 1.4
***************
*** 1,9 ****
# === NAME
#
#
# === EXAMPLES
#
! #
#
#
--- 1,14 ----
# === NAME
#
+ # BitTorrent Tracker module.
#
# === EXAMPLES
#
! # - TODO write examples for Tracker.
! # see ./test/net-bittorrent/tc_tracker.rb and ./lib/aversa/track.rb for now.
#
+ # === NOTES
+ #
+ # Tracker's Request/Response should extends HTTP's Request/Response class.
#
***************
*** 29,33 ****
self["info_hash"] = info_hash
self["port"] = port
! self["key"] = Util::create_key
self["uploaded"] = 0
self["downloaded"] = 0
--- 34,38 ----
self["info_hash"] = info_hash
self["port"] = port
! self["key"] = create_key()
self["uploaded"] = 0
self["downloaded"] = 0
***************
*** 72,76 ****
# See also 'complete' field of tracker request.
#
! def nat_check(infohash, peerid)
# TODO
# require 'net/bittorrent/peerwireprotocol'
--- 77,81 ----
# See also 'complete' field of tracker request.
#
! def self.nat_check(infohash, peerid)
# TODO
# require 'net/bittorrent/peerwireprotocol'
***************
*** 81,91 ****
##
#
! #
! #
! #
! # - TODO any good naming for this method?
! def compact_ip(ip, port)
!
end
end
--- 86,94 ----
##
+ # Convert ip/port to binary (6 bytes)
#
! # - TODO make sure byte order in spec.
! def self.compact(addr, port)
! pack_addr(addr) + pack_port(port)
end
end
Index: ChangeLog
===================================================================
RCS file: /var/cvs/aversa/aversa/lib/net/bittorrent/ChangeLog,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ChangeLog 6 Sep 2004 17:07:59 -0000 1.2
--- ChangeLog 16 Sep 2004 14:36:27 -0000 1.3
***************
*** 1,2 ****
--- 1,7 ----
+ # vim: noexpandtab tabstop=8 shiftwidth=8
+
+ 2004-09-16 Ikkei Shimomura <tea at kcn.ne.jp>
+ * Added pack/unpack ip address and port.
+
2004-09-06 Ikkei Shimomura <tea at kcn.ne.jp>
* Added MetaInfo#infohash
More information about the Aversa-commits
mailing list