enum rpc_msg_flags_mode

Overview

Flags set which determines behavior of msg_flags processing. More…

#include <tapi_rpc_socket.h>

enum rpc_msg_flags_mode {
    RPC_MSG_FLAGS_SET_CHECK = 0,
    RPC_MSG_FLAGS_NO_CHECK  = 1,
    RPC_MSG_FLAGS_NO_SET    = 2,
};

Detailed Documentation

Flags set which determines behavior of msg_flags processing. In general default value is 0 in this case a random value is passed in msg_flags field and then returned value will be checked:

  • for recvmsg()-like functions returned value has to be zero unless the cases when some flags are really expected;

  • for sendmsg()-like functions the field must be unchanged.

Enum Values

RPC_MSG_FLAGS_SET_CHECK

Set random flags and check returned value

RPC_MSG_FLAGS_NO_CHECK

Do not check returned flags value

RPC_MSG_FLAGS_NO_SET

Do not overwrite flags with a random vlue