Class RubyTorrent::Server
In: lib/rubytorrent/server.rb
Parent: Object

The Server coordinates all Packages available on the machine. It instantiates one Controller for each Package. It‘s also responsible for the creation of all TCP connections—it sets up the TCP socket, receives incoming connections, validates handshakes, and hands them off to the appropriate Controller; it also creates outgoing connections (typically at Controllers’ requests) and sends the handshake.

Methods

add_connection   add_torrent   ip   new   shutdown   start   to_s  

Constants

VERSION = 0
PORT_RANGE = (6881 .. 6889)

Attributes

http_proxy  [R] 
id  [R] 
port  [R] 

Public Class methods

Public Instance methods

[Validate]