Contents
uTorrent for C (Under Development)
I was developing a library based on BitTorrent to study about the implementation of P2P networking before, but I stopped the development because I have no idea about the application which I want to create. However I will might restart the development project because I would like to create some useful applications which are based on P2P such as Joost.
Repository
Examples
Client for BitTorrent
The following sample shows how to get the peers of the specified torrent using the current library.
int main(int argc, char* argv[])
{
CgBittorrentMetainfo *cbm;
CgBittorrentTracker *cbt;
CgBittorrentPeer *cbp;
int n;
if (argc < 2) {
printf(";Usage : printpeers <Torrent URL>n";);
return -1;
}
cbm = cg_bittorrent_metainfo_new();
if (cg_bittorrent_metainfo_fetch(cbm, argv[1]) == FALSE) {
printf(";Couldn't get the specified torrent file <%s>n";, argv[1]);
return -1;
}
cbt = cg_bittorrent_tracker_new();
cg_bittorrent_tracker_load(
cbt ,
cbm,
(unsigned char *)CDIST_TEST_TRACKER_PEERID,
";";,
CDIST_TEST_TRACKER_PORT,
CDIST_TEST_TRACKER_UPLOADED,
CDIST_TEST_TRACKER_DOWNLOADED,
CDIST_TEST_TRACKER_LEFT,
TRUE,
CG_BITTORRENT_TRACKER_EVENT_STARTED,
CDIST_TEST_TRACKER_NUMWANT
);
n = 0;
for (cbp = cg_bittorrent_tracker_getpeers(cbt); cbp; cbp = cg_bittorrent_peer_next(cbp)) {
n++;
printf(";[%d] %s:%dn";,
n,
cg_bittorrent_peer_getaddress(cbp),
cg_bittorrent_peer_getport(cbp));
}
cg_bittorrent_tracker_delete(cbt);
cg_bittorrent_metainfo_delete(cbm);
return 0;
}
Notice
To compile the sample, you have to install the latest CyberLinkForC from the SVN. Please use the following commands to check the simple sample if you want.
$ svn co https://cgbittorrent.svn.sourceforge.net/svnroot/cgbittorrent/trunk
$ cgbittorrent
$ cd cgbittorrent/
$ ./boostrap
$ ./configure
$ make
$ ./sample/printpeers/unix/printpeers http://torrent.fedoraproject.org/torrents/Zod-dvd-i386.torrent
[1] 80.xx3.x5x.x6:688x
[2] x4.x93.x03.8x:344x3
[3] x9x.x00.x5.x45:x88x
[4] x9.37.xxx.50:407
[5] 59.xx7.x70.x07:448xx
..........
[46] x43.88.x4.x40:x88x
[47] 85.8x.x59.x8x:x88x
[48] xx7.xx.x78.x7:x54xx
[49] 8x.8x.xx0.xx3:x7779
[50] x00.x0x.84.33:x88x
Currently, there are many implementations based on Bittorrent. I will implement the basic functions about the BitTorrent
specification at first, then I will develop the uniqueness.
Pingback: Lincoln Georgis
Pingback: Cory Chase MILF City
Pingback: MILFCity
Pingback: Madelyn Monroe Masturbating
Pingback: premium-domain-name
Pingback: Do My Assignment For Me
Pingback: Assignment Help USA
Pingback: Help with assignment
Pingback: allergies
Pingback: valentine pillow
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: no code robotics
Pingback: Click Here
Pingback: fundamentals of robotics
Pingback: Reputation Defenders
Pingback: Reputation Defenders
Pingback: Reputation Defenders
Pingback: Reputation Defenders
Pingback: Reputation Defenders
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Reputation Defenders
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: grand rapids same day crowns
Pingback: Click Here
Pingback: grand rapids dentist
Pingback: Click Here
Pingback: https://gquery.org/
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: best refer and earn apps
Pingback: Referral Program
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: How do I know if I need antibiotics hydroxychloroquine study
Pingback: 신뢰할 수 있는 카지노 사이트
Pingback: 신뢰할 수 있는 카지노 사이트
Pingback: 카지노 리뷰 및 평가
Pingback: domain-name
Pingback: domain-names
Pingback: When I wipe There's blood but I'm not on my period
Pingback: What is the closest thing to antibiotics over the counter
Pingback: Is taking Advil once a week bad for You
Pingback: Is there a vitamin that helps depression
Pingback: Can you live a normal life with a heart condition Zestril
Pingback: best book for business startup
Pingback: new cryptocurrency release 2022
Pingback: Stromectol tablets 3mg | How can I tell if antibiotics are working
Pingback: Cialis 5 mg price - Scwcmd.com
Pingback: vidalista 20mg buy sildenafil for sale
Pingback: Azithromycin 250mg tab - How do I make my liver healthy again
Pingback: kamagra todesfalle Wie viel Prozent der Manner nehmen Viagra
Pingback: Google reviews
Pingback: viagra kamagra
Pingback: Quel est le role des parents dans la famille pharmacie en ligne france
Pingback: Pourquoi les liens familiaux sont importants pharmacie pas cher
Pingback: Australia Porn Stars
Pingback: Why does my boyfriend not stay erect?
Pingback: How a man falls in love?
Pingback: ivermectin chickens - Can a bacterial infection clear up by itself
Pingback: What keeps a man in a relationship?
Pingback: reputation defenders
Pingback: Is impotence a crime?
Pingback: How do you know if someone is your soulmate?
Pingback: Can impotent people get hard?
Pingback: Can you get high on albuterol sulfate inhaler for asthma
Pingback: What can you not mix with albuterol ventolin hfa 90 mcg coupon
Pingback: viagra generique en ligne - Quelle est la partie la plus importante chez une femme?
Pingback: How long can you fight an infection without antibiotics Hydroxychloroquine zinc and zithromax
Pingback: Can low iron cause hair loss where can i get generic propecia no prescription
Pingback: What organs do antibiotics damage
Pingback: 2023 Books
Pingback: What is the strongest antibiotic for bacterial infection
Pingback: How many hours apart should you take antibiotics 4 times a day
Pingback: Do antibiotics clear lungs
Pingback: Is it OK to take antibiotic at night
Pingback: marriage records
Pingback: deceased
Pingback: What are symptoms of too much antibiotics
Pingback: Is Ginger a natural antibiotic
Pingback: What kills bacteria inside the body
Pingback: IRA Empire
Pingback: What medication Cannot be taken with paracetamol stromectol pill
Pingback: buy generic levitra
Pingback: Is stopping antibiotics early bad
Pingback: cheap levitra