mq_send

Add a message to a message queue.

version(Posix && CRuntime_Glibc)
extern (C) @nogc nothrow
int
mq_send
(,
const(char)* msg_ptr
,
size_t msg_len
,)

Parameters

mqdes mqd_t

Message queue descriptor.

msg_ptr const(char)*

Buffer to read the message from

msg_len size_t

Size of the message provided via msg_ptr. Must be lower or equal to the mq_msgsize attribute of the queue.

msg_prio uint

Priority of this message.

Return Value

Type: int

On success, mq_send() return zero; on error, -1 is returned, with errno set to indicate the error.

Meta