From doug@seismo.berkeley.edu Fri Oct 24 10:53:35 1997
Date: Fri, 24 Oct 1997 10:53:24 -0700
From: Doug Neuhauser <doug@seismo.berkeley.edu>
To: dietz@andreas.wr.usgs.gov
Subject: import_data
Cc: alex@andreas.wr.usgs.gov

Lynn,

Enclosed is my import_data program, which was derived from an earlier version
of the import_generic program.  It differs in the following ways:

1.  I fixed a few spelling errors (exitting, etc).
2.  It picks the command name from the command line instead of
hard-coding it through the program.
3.  It determines the wordorder of the computer so that it can convert
TYPE_TRACEBUF data to its word order on import.
4.  It fixes the problem with unquoting messages.
5.  It puts heartbeats from the remote server into the ring -- 
provides me an easy way of monitoring whether it is connected to a live
remote server.  (This could easily be made an option.)
6.  It provides an option to override the logo of the remote server
on the heartbeat msgs into the ring.
7.  It uses multi-character non-blocking reads and select() calls to
get data from the socket, which significantly reduces the cpu overhead
derived from per-character system calls.
8.  It performs wordorder conversion of TYPE_TRACEBUF data when required.

It uses several subroutines in my <qlib2> library, and I did not code
the multi-character reads for anything but Solaris, so it is not a
"compliant" EW module.  You may use any part of it as you see fit.

- Doug N

