DH_SetTransmitFormat

Cogent API and Utilities: Version 4.1
Prev |  | Next

# `DH_SetTransmitFormat`

`DH_SetTransmitFormat` -- sets client-to-datahub transmissions to binary or ASCII.

## Syntax

    #include <cogdb.h>

``int DH_SetTransmitFormat`(int flag);`

## Arguments

`flag`

  One of these:

  `PT_FMT_ASCII` | Constructs a humanly readable ASCII string (the default).
  `PT_FMT_BINARY` | Encodes data as a raw binary representation, efficient for parsing.
  `PT_FMT_HEX` | Encodes data as ASCII encoded hex. This is not a valuable format since it is more difficult to parse and less space efficient than binary, and it is more difficult for humans to read than regular ASCII.

## Returns

`ST_OK` on success, `ST_ERROR` on failure, or some other value of `ST_STATUS`.

## Description

This function sets a global variable that determines whether `DH_WritePoint` will attempt to use binary or ASCII format in transmissions from a client to the Cascade DataHub.

## See Also

`DH_SetReceiveFormat`

Prev | Home | Next
`DH_SetReceiveFormat` | Up | `DH_UnregisterPoint`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.