KatoFlush (Compact 2013)

3/26/2014

This function configures the network data-flushing mode or allows for an immediate flush.

Syntax

BOOL KatoFlush(
  KATO_FLUSH_TYPE flushType
);

Parameters

  • flushType
    Type of data flushing that should be used when logging across the network. See the Remarks section for possible values.

Return Value

Nonzero if successful; otherwise, zero.

Remarks

This function is used to control how the Kato client sends data to the Windows Embedded Compact Test Kit (CTK) server. When data is flushed, the client waits for the server to acknowledge that all data has been received. The following values are allowed for flushType:

  • KATO_FLUSH_ON
    All logging calls will not return until data has reached the server.
  • KATO_FLUSH_OFF
    Data might be queued by network layer before being sent to server.
  • KATO_FLUSH_NOW
    Any current data queued by the network layer will be immediately flushed.

The default value is KATO_FLUSH_OFF, which provides the best performance. KATO_FLUSH_ON can be useful when logging on an unstable OS that could possibly crash while data is still being queued by the network layer. This mode can significantly lower performance. If you set the value to KATO_FLUSH_NOW, the application performs a single flush to ensure that all data has been flushed before continuing on.

Note

Currently, flushing is not supported in Kato.

Requirements

Header

kato.h

Library

kato.lib

See Also

Concepts

Common Functions for C and C++ Interfaces