The protocol of the Farm Spy Daemon


The farm spy daemon and remote spy processes communicate using TCP/IP sockets.

The farm spy daemon creates a TCP/IP socket and puts itself in a listening state. On the other side, remote spy processes connect themselves to the same socket and starts the communication.

Since the farm spy daemon and the remote spy processes can run on different platforms, the eventual byte swapping is done at the farm spy daemon level. In this way, the remote spy processes can ignore this problem and work with their internal rapresentation.

A data retreival cycle is made of:

  1. A request from a remote spy process: (3 unsigned ints)

    OffsetNameMeaning
    0magicMust be FARMSPYD_MAGIC_NUMBER (defined in farmprog_defs.h)
    4last_event_nrThe last event number received (0 to get the first)
    8max_eventsMaximum number of events in the packet

  2. The response from the farm spy daemon: (header + data)


Top of the page. The farm spy daemon documentation.
Send comments to: Igor Sfiligoi

Created:16.11.1997
Last modified:16.11.1997