dadHost
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
dadInit definitions.
f77: Call dadHost( Name, Type, Port, Dataflow, OpenFlags)
integer Port, OpenFlags
character *(*)Name
character *(*)Type
character *(*)Dataflow
or
C: int dadHost( char *Name, char *Type, int Port, char *Dataflow,
int OpenFlags);
- 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
server
- 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
above mentioned
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
|framelength|buffer|
checksum|.
- 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
dadMRead,
dadMWrite and
dadRewind only.
- CAC_COMPRESS read/write a file in compressed mode using
zlib. The compression factor can be adjusted
via
dadComprLevel.
This option is only supported for file I/O.
You may omit paramters to dadHost by setting them to 0. Then
the dadInit defaults don't get touched.
This page is maintained by Wolfgang Wander