Posted: Sat Aug 03, 2002 3:42 am
Restored from previous forum. Originally posted by ricardo.
Hi, Its me again making questions.
Im trying, as i post in a message a few days ago, to comunicate with a Gnutella server (or servant).
In the protocol papers they said:
Note 2: All fields in the following structures are in little-endian
byte order unless otherwise specified.
Note 3: All IP addresses in the following structures are in IPv4
format. For example, the IPv4 byte array
0xD0 0x11 0x32 0x04
byte 0 byte 1 byte 2 byte 3
represents the dotted address 208.17.50.4.
and in other place they say:
Message ID A 16-byte string (GUID) uniquely identifying the
message on the network.
Servants SHOULD store all 1's (0xff) in byte 8 of the
GUID. (Bytes are numbered 0-15, inclusive.) This
serves to tag the GUID as being from a modern
servant.
Servants SHOULD initially store all 0's in byte 15 of
the GUID. This is reserved for future use.
The other bytes SHOULD have random values.
Payload Indicates the type of message
Type 0x00 = Ping
0x01 = Pong
0x02 = Bye
0x40 = Push
0x80 = Query
0x81 = Query Hit
[/b]
Im not sure if i understand this...
When they say: 16 byte string (will its rules), its like
Structure Gnutella
MessageID.b[16]
TTL.b[1]
Hops.b[1]
Payload.b[1]
EndStructure
Test.Gnutella
PokeS(@Test\MessageID[0],"3456789102345609")
Another question... how can i write the Ping, etc.
0x00 = Ping 0x01 = Pong 0x02 = Bye 0x40 = Push
0x80 = Query 0x81 = Query Hit
Maybe i will have more questions in a few minutes (i will continue reading the Gnutella Protocl), i hope that some charitative soul answers my multiple questions : )
The pages that im reading (if someone else has interest) is:
http://groups.yahoo.com/group/the_gdf/f ... 6draft.txt
Hi, Its me again making questions.
Im trying, as i post in a message a few days ago, to comunicate with a Gnutella server (or servant).
In the protocol papers they said:
Note 2: All fields in the following structures are in little-endian
byte order unless otherwise specified.
Note 3: All IP addresses in the following structures are in IPv4
format. For example, the IPv4 byte array
0xD0 0x11 0x32 0x04
byte 0 byte 1 byte 2 byte 3
represents the dotted address 208.17.50.4.
and in other place they say:
Message ID A 16-byte string (GUID) uniquely identifying the
message on the network.
Servants SHOULD store all 1's (0xff) in byte 8 of the
GUID. (Bytes are numbered 0-15, inclusive.) This
serves to tag the GUID as being from a modern
servant.
Servants SHOULD initially store all 0's in byte 15 of
the GUID. This is reserved for future use.
The other bytes SHOULD have random values.
Payload Indicates the type of message
Type 0x00 = Ping
0x01 = Pong
0x02 = Bye
0x40 = Push
0x80 = Query
0x81 = Query Hit
[/b]
Im not sure if i understand this...
When they say: 16 byte string (will its rules), its like
Structure Gnutella
MessageID.b[16]
TTL.b[1]
Hops.b[1]
Payload.b[1]
EndStructure
Test.Gnutella
PokeS(@Test\MessageID[0],"3456789102345609")
Another question... how can i write the Ping, etc.
0x00 = Ping 0x01 = Pong 0x02 = Bye 0x40 = Push
0x80 = Query 0x81 = Query Hit
Maybe i will have more questions in a few minutes (i will continue reading the Gnutella Protocl), i hope that some charitative soul answers my multiple questions : )
The pages that im reading (if someone else has interest) is:
http://groups.yahoo.com/group/the_gdf/f ... 6draft.txt