dadHost defines the connection parameters for a further call to
dadConnect. dadHost calls before
dadInit can be overwritten by definitions
from dadInit and a dadHost call after
dadInit can overwrite
f77: Call dadHost( Name, Type, Port, Dataflow, OpenFlags)
integer Port, OpenFlags
C: int dadHost( char *Name, char *Type, int Port, char *Dataflow,
You may omit paramters to dadHost by setting them to 0. Then
the dadInit defaults don't get touched.
- The Name either contains the name of the host
where the server is expected to be running or the name of a local
UNIX socket filename. If a pipe or file is the specified connection
this name refers to the unix file name.
- The Type is either:
- 'INET' for a internet socket connection or
- 'UNIX' for a local unix socket connection or
- 'RFIL' for reading from a dad file or
- 'WFIL' for writing to a dad file,
- 'RPIP' for reading from a dad pipe or
- 'WPIP' for writing to a dad pipe.
- 'RMEM' for reading from a dad shared memory pipe or
- 'WMEM' for writing to a dad shared memory pipe.
- The Port contains the port number of the external
host where the server is listening for clients or 0 in the case
of a local connection.
- The Dataflow is the name of the dataflow that is expected
to be served by the server.
- The Openflags specify the operation mode for the database
access. You use a sum of
- CAC_READ for reading a information from the server
- CAC_WRITE for writing information to the server
- CAC_UPDATE for the updating scheme
- CAC_BOOK for booking new information (messages) on the
- CAC_GENTABLES if the metatable
information on the server shall be used to
generate the Adamo tables in the library while
connecting to the server.
- CAC_KEYTABLE for access to the keytable. Here the keytable
may be read but only fields besides ID,
cName, iTimeStart, iTimeEnd and LocalId may
be changed by the client on the current
record. Changes to the current keytable entry
can only be made if the keytable contains the
update fields are part
of the table. See
examples on keytable manipulation.
- CAC_CHECKSUM Dad can now write evcat format on dad files.
The flag CAC_CHECKSUM does enable
this format which packs records
into a frame of
- CAC_NOSYNC No Time synchronization is done even if the
system time of client and host differ.
- CAC_KEEPEXEC Keep a file handle of the server connection also
in exec'ed processes.
- CAC_MULTI Open a multi record type file/pipe to be accessed
through the functions
- CAC_COMPRESS read/write a file in compressed mode using
zlib. The compression factor can be adjusted
This option is only supported for file I/O.
This page is maintained by Wolfgang Wander