stream_print_utf8_char_array stream_poke_begin navigation bar

Table of Contents

stream_get_character_format

Returns the character format of the stream.

Description

This function returns the character format of the stream. If the character format has not yet been determined then STREAM_FORMAT_AUTO is returned. Otherwise the character format detected or set manually is returned.

Character format conversions are only necessary when communicating between platforms that use a different character format. For example, Unix systems may use UTF-32 wide characters while Windows uses UTF-16 wide characters. By default, the character format is assumed to be the same as the local character format.

Prototype

t_error
stream_get_character_format(t_stream stream, t_stream_format * format);
    

Parameters

t_stream stream

A stream established using stream_listen, stream_connect or stream_accept.

t_stream_format * format

The character format of the peer.

Return value

Returns 0 on success. If an error occurs then a negative error code is returned.

Error codes

This function does not return any error code.

Requirements

Include Files

Libraries

quanser_stream.h

quanser_communications.lib;quanser_runtime.lib;quanser_common.lib

See Also

 

navigation bar