tracker_client v0.1.1 TrackerClient.UDP.Statem

State machine that follows the UDP torrent tracker protocol.

Definition: http://www.bittorrent.org/beps/bep_0015.html

Summary

Functions

Initiate the announcement

Starts a state machine with the given url and parent params

Functions

announce(pid, params)

Initiate the announcement.

start_link(url, parent)
start_link(String.t, pid) :: :gen_statem.start_ret
start_link(:gen_statem.server_ref, Keyword.t) ::
  {:ok, TrackerClient.Announcement.t} |
  {:error, :timeout | term}

Starts a state machine with the given url and parent params.