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:
Offset | Name | Meaning |
---|---|---|
0 | magic | Must be FARMSPYD_MAGIC_NUMBER (defined in farmprog_defs.h) |
4 | last_event_nr | The last event number received (0 to get the first) |
8 | max_events | Maximum number of events in the packet |
Offset | Name | Meaning |
---|---|---|
0 | magic | Must be FARMSPYD_MAGIC_NUMBER (defined in farmprog_defs.h) |
4 | event_nr | The event number of the current data (ignore if size==0) |
8 | size | The size of the data (0 if no data available) |
Top of the page. | The farm spy daemon documentation. | Send comments to: Igor Sfiligoi |
Created | : | 16.11.1997 |
Last modified | : | 16.11.1997 |