Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

How do I make a UDP request to a torrent tracker?

by Cody Fendant (Hermit)
on Jul 27, 2016 at 21:21 UTC ( [id://1168686]=perlquestion: print w/replies, xml ) Need Help??

Cody Fendant has asked for the wisdom of the Perl Monks concerning the following question:

This page contains the details of a well-known torrent tracker:

http://coppersurfer.tk/

Which advises us to use UDP and access udp://tracker.coppersurfer.tk:6969/announce -- how would I do that with Perl?

This node shows how to send something to a UDP host (no path is given) but I want to do something more like a HTTP get() request and get back a stream of data.

How do I do that?

question based on a misunderstanding

  • Comment on How do I make a UDP request to a torrent tracker?

Replies are listed 'Best First'.
Re: please delete
by Corion (Patriarch) on Jul 28, 2016 at 12:44 UTC

    Part of the now (erased) question is how to do something like a request/reply flow as HTTP has over UDP.

    As UDP is not TCP, there is no concept of a "connection" for UDP. So I expect that most UDP-based protocols will simulate that "connection" by actively sending a separate packet to the originating IP address in response to receiving an UDP packet.

Re: please <i>DO NOT</i> delete
by ww (Archbishop) on Jul 28, 2016 at 12:39 UTC

    This deletion violates PM standards... if for no other reason than that your "misunderstanding" may be illuminating to some future reader... especially if the OP is restored and you edit it to explain what you now believe.

    Update: jdporter advises the original has been restored.

Re: How do I make a UDP request to a torrent tracker?
by SankoR (Prior) on Jul 29, 2016 at 14:35 UTC
    Self promotion time! It's kinda dated (pre-Moose and hand rolled event loop era) but Net::BitTorrent supports UDP trackers. Eventually, that'll be based on IO::Async.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1168686]
Approved by Paladin
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-24 12:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found