Aus YaCyWiki
Wechseln zu: Navigation, Suche


The 'Hello' Peer-Ping Process

/yacy/hello.html is a servlet which returns a property list as result, not a html page as the name would suggest. The purpose of this servlet is a handshake between two peers wich ensure doing this that they are alive and by the way transport some critical information about their network position and the status of their operation together with some 'news', which is (from both sides) a list of recently known or new peers in the network. Every peer is doing one peer-ping each minute by calling the 'hello.html'-servlet of one of the peers in the known list of peers.

Operations performed when the servlet is called

When a peer is pinged by calling the hello.html servlet the ping'ed peer tries to ping the ping-ing peer back by calling the ping-ing peers /yacy/query.html servlet. If the ping'ed peer gets a respond from the ping-ing peer, it assigns the ping-ing peer the senior status, otherwise the status is junior. After the ping-ing peer gets a result, it assigns itself the status as reported by the ping process. If the peer gets no answer at all (i.e. a timeout happens), the peer assigns itself the virgin status.

Properties in the http header

The caller must obey the http header rules.

Properties in the http post-arguments

Calls to the servlet can be made using a GET or POST operation. The properties are:


The returned document contains a list of property lines. These properties are:

  • version=<YaCy version number of responding peer>
  • uptime=<time the responding peer is running since startup in minutes>
  • yourip=<the IP of the requesting peer as seen in http request>
  • yourtype=<the YaCy peer type as discovered after a back-ping>
  • mytime=<the local time of the responding peer in format yyyyMMddHHmmss>
  • message=<a status message, can contain error status>
  • seed<c>=<a SimpleCoding of other peer Peer Seeds in the network>; this is a list of seed0 .. seed<count> properties where 0 <= <c> <= <count>. There will be always count+1 seeds returned since the seed0-property contains always the seed of the called peer.

Example Usage

An example URL is


which may return something like this:

message=ok 47
Meine Werkzeuge