Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > Gtk-Gnutella (Linux/Unix/Mac OSX/Windows)
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

Gtk-Gnutella (Linux/Unix/Mac OSX/Windows) Gtk-Gnutella user section. Preview this popular software: Gtk-Gnutella (Linux / BSD / Darwin / Mac OS X / Windows)


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old October 23rd, 2007
Novicius
 
Join Date: October 18th, 2007
Posts: 1
grakeshmadhav is flying high
Default Gnutella p2p socket programing

HI all,
can i get gnutella related socket and server programing source code files in C lang.
i require code for functions to

1. int startServer(ushort * serverport, int wildip)
// 2. int connectToHost(char *nhost, ushort nport, int byip, IPAddr ipaddr)
// 3. int acceptConnect( int serversock)
// 4. IPAddr getOwnIpAddress(int sock) // own ip address
// 5. IPAddr getPeerIpAddress(int sock) // own ip address
// 6. char * getPeerName(int sock, ushort * peerport)
// 7. IPAddr strtoipaddr(char *str)
// 8. char *ipaddrtostr(IPAddr adr)


and


1. Descriptor * buildQueryHitDescriptor(Host * host, Result resultset[], int count, Descriptor * querydesc)
// 2. int sendDescriptor(Host* host, Descriptor * desc, int sock)
// 3. Descriptor * rcvDescriptor(int sock)
// 4.int searchDirectory(Host * host, Result rset[], char * search_string )
// 5.int scanDirectory(Host * host, Result rset[])
// 7. void httpFileUpload(int sock,char* folder)
// 8. int httpFileDownload( int sock, char * file_name, char * folder)

These are the functions i need to fill up with the available parametres in the function prototype.
Please help me asap
Reply With Quote
  #2 (permalink)  
Old October 3rd, 2008
Novicius
 
Join Date: October 3rd, 2008
Posts: 1
xvortexx is flying high
Default

anybody have the code for this?
Reply With Quote
  #3 (permalink)  
Old March 29th, 2013
Novicius
 
Join Date: March 29th, 2013
Posts: 1
yankydoodle is a great assister to others; your light through the dark tunnel
Default

hi,
were you able to implement these functions ?..I too have to do them for my university project.
Reply With Quote
  #4 (permalink)  
Old May 11th, 2013
gtk-gnutella developer
 
Join Date: October 8th, 2003
Posts: 28
MrJoe is flying high
Default

Quote:
Originally Posted by yankydoodle View Post
hi,
were you able to implement these functions ?..I too have to do them for my university project.
gtk-gnutella has a lib <-> ui separation. Perhaps you can use the lib part? I don't know what you will exactly need?
__________________
Spam goes to [email]ben@asselman.com[email] (no don't mail there, it will be treated as spam).
Reply With Quote
  #5 (permalink)  
Old April 1st, 2013
Lord of the Rings's Avatar
ContraBanned
 
Join Date: June 30th, 2004
Location: Middle of the ocean apparently (middle earth)
Posts: 666
Lord of the Rings has a distinguished reputationLord of the Rings has a distinguished reputationLord of the Rings has a distinguished reputation
Default

May I recommend the source code from the GTK-Gnutella website. gtk-gnutella - The Graphical Unix Gnutella Client

GTK is the most advanced gnutella program at present time. I'm sure you will be able to pick out the methods from the code yourself. That is if you do not get another reply here soon by a GTK dev.

There is also the LPE source code. Components pages: https://github.com/metapirate/LimeWi...dEndpoint.java .. / .. https://github.com/metapirate/LimeWi.../gnutella-core

You could also register at and ask at the GDF.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: https://www.gnutellaforums.com/gtk-gnutella-linux-unix-mac-osx-windows/76640-gnutella-p2p-socket-programing.html
Posted By For Type Date
Site Gnutella Forums | www.gnutellaforums.com | BoardReader This thread Refback June 16th, 2013 01:09 PM


All times are GMT -7. The time now is 02:26 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.