Gnutella Forums  

Go Back   Gnutella Forums > Gnutella News and Gnutelliums Forums > General Gnutella Development Discussion
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

General Gnutella Development Discussion For general discussion about Gnutella development.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old July 18th, 2002
Disciple
 
Join Date: July 18th, 2002
Posts: 19
prh99 is flying high
Post Pong Packet Question..

I was wonder what I am doing wrong with the four byte host address in the query hit packet.

I've written a client now I am just ironing the bugs out. I've set up a test network on my computer. My program connect to Gnucleus.

When send a query hit with the 127.0.0.1 (7F001 or 520193) I get some something like 16.0.127.0. My question is how do you encode the host address? is suppose to be 127001?
Reply With Quote
  #2 (permalink)  
Old July 18th, 2002
Gnutella Veteran
 
Join Date: March 24th, 2002
Location: Virginia
Posts: 101
tshdos is flying high
Default

Looks like you have the bytes in the wrong order.

127.0.0.1 = 16777343 = 0x0100007F
Reply With Quote
  #3 (permalink)  
Old July 19th, 2002
Paradog's Avatar
Distinguished Member
 
Join Date: April 5th, 2002
Location: Germoney
Posts: 739
Paradog is flying high
Default

Quote:
Originally posted by tshdos
Looks like you have the bytes in the wrong order.

127.0.0.1 = 16777343 = 0x0100007F
I thought the Ips were IPv4 and the other stuffs lil' Endian?
Reply With Quote
  #4 (permalink)  
Old July 19th, 2002
Disciple
 
Join Date: July 18th, 2002
Posts: 19
prh99 is flying high
Default

Quote:
Originally posted by tshdos
Looks like you have the bytes in the wrong order.

127.0.0.1 = 16777343 = 0x0100007F

Thanks that seems to have solved my bad packet problem.
The Gnutella specs are a little misleading. The show it as:

byte 0 byte 1 byte 2 byte3

and the first part of their example address (208 i believe) under the byte 0. Anyway thanks for clearing that up.
Reply With Quote
  #5 (permalink)  
Old July 20th, 2002
Connoisseur
 
Join Date: August 9th, 2001
Location: Philadelphia, PA, USA
Posts: 358
cultiv8r is flying high
Default

String to IP: inet_addr()
IP to InAddr: inet_ntoa()
Reply With Quote
  #6 (permalink)  
Old July 21st, 2002
On Holiday
 
Join Date: July 20th, 2002
Posts: 185
Syfonic is flying high
Default

Does that help?
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Packet too big error gnutella06 General Discussion 7 June 9th, 2006 12:43 AM
Packet routing faisal General Discussion 0 October 2nd, 2002 08:55 PM
Packet efficiency Cakkie General Gnutella Development Discussion 5 July 21st, 2002 11:01 PM
Packet routing Cakkie General Gnutella Development Discussion 6 July 21st, 2002 12:09 PM
Pong Question Ivex General Gnutella Development Discussion 4 January 22nd, 2002 05:24 AM


All times are GMT -7. The time now is 12:55 AM.


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.