Table of Contents

Name

rmtSendSync - remote - send a sync msg

Description

rmtSendSync passes a sync msg to dbman.

dbman echos the record back to the sender without changing it. This allows a client program to syncronize it’s connection with dbman, i.e. it can ensure that all of the transactions passed to dbman have been processed up to the point of the sync msg.

There may be more than one sync msg outstanding at any time so the QUEDISK.Value field can be used to pass a serial number.

The request is passed in remote mode using a QUEDISK record.

This function is part of librmt.

Syntax

int rmtSendSync(
int fo,
double V,
int verbosity
);

Arguments

fo


The file descriptor for the connection to dbman.

V


QUEDISK.Value

verbosity

Defines the amount of messages to print. This value is passed on to SendRec. A value of 0 produces no messages. See the SendRec manpage for full details on available values.

Return Values

ERRok is returned if the transaction is successful.
The error code from the transaction is returned if there is a communications error.

See Also

librmt(3rmt)

Manual page revision

$Id: rmtSendSync.3,v 1.2 2008/08/22 16:23:09 mcnamer Exp $


Table of Contents