Top Level Namespace
Defined Under Namespace
Modules: RubyTorrent, URI Classes: Array, Hash, Integer, String, Time
Instance Method Summary collapse
-
#rt_debug(*args) ⇒ Object
util.rb – miscellaneous RubyTorrent utility modules.
- #rt_warning(*args) ⇒ Object
-
#socket ⇒ Object
server.rb – make/receive and handshake all new peer connections.
-
#thread ⇒ Object
package.rb – RubyTorrent <=> filesystem interface.
-
#uri ⇒ Object
bencoding.rb – parse and generate bencoded values.
Instance Method Details
#rt_debug(*args) ⇒ Object
util.rb – miscellaneous RubyTorrent utility modules. Copyright 2005 William Morgan.
This file is part of RubyTorrent. RubyTorrent is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation.
RubyTorrent is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License (in the file COPYING) for more details.
14 15 16 17 18 19 20 |
# File 'lib/rubytorrent/util.rb', line 14 def rt_debug(*args) if $DEBUG || RubyTorrent.log stream = RubyTorrent.log || $stdout stream << args.join << "\n" stream.flush end end |
#rt_warning(*args) ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/rubytorrent/util.rb', line 22 def rt_warning(*args) if $DEBUG || RubyTorrent.log stream = RubyTorrent.log || $stderr stream << "warning: " << args.join << "\n" stream.flush end end |
#socket ⇒ Object
server.rb – make/receive and handshake all new peer connections. Copyright 2004 William Morgan.
This file is part of RubyTorrent. RubyTorrent is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation.
RubyTorrent is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License (in the file COPYING) for more details.
14 |
# File 'lib/rubytorrent/peer.rb', line 14 require 'socket' |
#thread ⇒ Object
package.rb – RubyTorrent <=> filesystem interface. Copyright 2004 William Morgan.
This file is part of RubyTorrent. RubyTorrent is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation.
RubyTorrent is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License (in the file COPYING) for more details.
14 |
# File 'lib/rubytorrent/package.rb', line 14 require 'thread' |
#uri ⇒ Object
bencoding.rb – parse and generate bencoded values. Copyright 2004 William Morgan.
This file is part of RubyTorrent. RubyTorrent is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation.
RubyTorrent is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License (in the file COPYING) for more details.
14 |
# File 'lib/rubytorrent/bencoding.rb', line 14 require 'uri' |