class BitTorrent::Socket

Defined in:

bittorrent/socket.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ip : String, port : UInt16) #

[View source]

Instance Method Detail

def close #

[View source]
def handshake(info_hash : StaticArray(UInt8, 20), peer_id : String) #

[View source]
def receive_message #

[View source]
def send_message(message) #

[View source]
def send_message(message, *payload) #

[View source]