Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



.NET library for Utorrent

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 21-06-2010
Member
 
Join Date: Mar 2010
Posts: 330
.NET library for Utorrent
  

Hello,
I am a .net programmer and I would like to design a torrent client. I am searching a .net library for utorrent. If any one has done this before then please let me know. Also, if you have some code for me then please post it. Thank you.

Reply With Quote
  #2  
Old 21-06-2010
Member
 
Join Date: Apr 2008
Posts: 264
Re: .NET library for Utorrent

Hey,
Check out this code
Code:
 Function torrentkey(ByVal length As Integer, Optional ByVal kys As Integer = 1) As String
 
        Dim Chars() As String = {"some string here"}
        'Chars[0] = utorr kys
        'Chars[1] = bittorr kys
        Dim str As String = ""
        Dim r As New System.Random()
 
        For i = 1 To length
            str &= Chars(kys).Substring(r.Next(1, Chars(kys).Length), 1)
        Next
 
        Return str
Reply With Quote
  #3  
Old 21-06-2010
Member
 
Join Date: Nov 2009
Posts: 359
Re: .NET library for Utorrent

If you need you can use this part of the code

Code:
  Function AnnounceGetPeerList(ByVal fs As str) As List(Of Peer)
        'you can also use a file with a torrenrequest
        'Dim reader As New RawReader(IO.File.Open("test.req", IO.FileMode.Open), False)
 
        'decode the bencoded str
        Dim dictionary As encddic = BEncodedValue.Decode(Of encddic)(fs)
 
        Dim prs As New List(Of Peer)
        For Each kypr In dictionary
            Select Case kypr.Key.ToString
                Case "interval"
                    'MsgBox TimeSpan.FromSeconds(int.Parse(kypr.Value.ToString())); 
                    'MsgBox(kypr.Value.ToString)
                Case "prs"
                    If TypeOf kypr.Value Is BEncodedList Then
                        prs.AddRange(Peer.Decode(DirectCast(kypr.Value, BEncodedList)))
                    ElseIf TypeOf kypr.Value Is BEncodedString Then
                        prs.AddRange(Peer.Decode(DirectCast(kypr.Value, BEncodedString)))
                    End If
                Case Else
                    'MsgBox("HttpTracker - Unknown announce tag received:" & kypr.Key.ToString() & kypr.Value.ToString())
            End Select
        Next
 
        Return prs
    End Function
Reply With Quote
  #4  
Old 21-06-2010
Member
 
Join Date: Mar 2010
Posts: 338
Re: .NET library for Utorrent

Transmission is increasingly recognized as my default client. Instead, I want to open with torrent Opera. But I have never installed Opera (it was of me in a reforge installing other software (update Transmission?) And I had not seen), and therefore I can not uninstall it (it is not in my Applications folder). And when I mean transmission default client to open the files. Torrent, not my mac "remembers" never.
Reply With Quote
  #5  
Old 21-06-2010
Member
 
Join Date: May 2008
Posts: 248
Re: .NET library for Utorrent

To know or is Opera, just open a stream with (right click> Open With) and when it starts, make apple + click (cmd-click for those who no longer have the apple) on the Opera icon in the Dock. cmd + click on a Dock icon displays the application in the Finder. And to know where you are, or you switch to column, or you do a cmd + click on the title of the Finder window.
Reply With Quote
  #6  
Old 29-06-2010
Member
 
Join Date: Mar 2010
Posts: 303
Re: .NET library for Utorrent

So I have done like this:
Right click on a torrent file and then "Get Info" (I MAC OSX English) and then down you can choose from a list what you want the program opens and you pick Transmission then you click on "by default" and voila! problem solved!
Reply With Quote
  #7  
Old 30-06-2010
Member
 
Join Date: Mar 2010
Posts: 372
Re: .NET library for Utorrent

You can stay with transmission, but you will have the same problem => download slower than normal.In fact, the principle of open ports, serves to connect you to more peers and thus download more quickly. It's the same thing on emule for example, must open TCP port. Now, some ports open box automatically (UPnP). Soon to be that yours does.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: ".NET library for Utorrent"
Thread Thread Starter Forum Replies Last Post
Move iTunes library to WD My Book Live Duo without losing library settings FLU|TER Hardware Peripherals 3 26-03-2012 03:25 PM
Does Sharing ITunes Library on network shows Apps in other library Donoho Windows Software 6 03-07-2011 10:20 PM
How to remove new library button from library toolbar in windows 7 Jugo Customize Desktop 4 13-04-2011 10:35 AM
Library Does not Show Album Art in Windows 7 Music Library files Numb Windows Software 4 28-12-2010 08:38 AM
New .NET wrapper library for the uTorrent Bindu-I Technology & Internet 9 10-07-2010 08:30 AM


All times are GMT +5.5. The time now is 07:05 PM.