enum read_message_rc

Overview

Message reading result code More…

#include <common.h>

enum read_message_rc {
    READ_MESSAGE_RC_ERR       = -2,
    READ_MESSAGE_RC_WRONG_VER = -1,
    READ_MESSAGE_RC_EOF       = 0,
    READ_MESSAGE_RC_OK        = 1,
};

Detailed Documentation

Message reading result code

Enum Values

READ_MESSAGE_RC_ERR

A reading error occurred or unexpected EOF was reached

READ_MESSAGE_RC_WRONG_VER

A message of unsupported version was encountered

READ_MESSAGE_RC_EOF

The EOF was encountered instead of the message

READ_MESSAGE_RC_OK

The message was read successfully