View Single Post
  #1 (permalink)  
Old August 24th, 2003
ferret-2000 ferret-2000 is offline
Apprentice
 
Join Date: August 6th, 2003
Posts: 8
ferret-2000 is flying high
Default some question about ultrapeer and leaf

I use bearshare(it run in a leaf mode and i do not know how to change it to ultrapeer mode) as a servant.When i use my client connect to it,handshaking steps:

myclient send->
GNUTELLA CONNECT/0.6\r\n\r\n

bearshare respond->
GNUTELLA/0.6 200 OK
Machine: 1,8,158,1,467
Pong-Caching: 0.1
Hops-Flow: 1.0
Bye-Packet: 0.1
GGEP: 0.5
BearChat: 1.0
User-Agent: BearShare 4.2.7
Remote-IP: 192.168.0.1
X-Ultrapeer-Needed: False
FP-Auth-Challenge: TVFERS6F2N3RZUAOS63M3OWHBCS23D7I

myclient send ->
GNUTELLA/0.6 200 OK\r\nPrivate-Data: a04fce\r\n\r\n

i receive the ping message from bearshare as follow:

77 F1 CE 8D 5B 75 BC 7F 26 9F 2D AB AA 2A A7 26
00 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 31 01 00 09 00 00 00 42 45
41 52 05 00 01 00 07

when i try to send ping message to it,no responds received.but it send ping message(just the same as the above one) constantly:
when i send a pong or search message to it ,it send follow message constantly:

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
31 01 00 09 00 00 00 42 45 41 52 05 00 01 00 07

my client is the most simple one,and i just want the bearshare act as a nomal servant(can share files,respond to the normal message,such as ping,query,etc.),so i can use my client to search and download,but i do not know how to realize this.
thanks!
Reply With Quote