VSTa manual pages  - MSG_REPLY (2)

NAME

msg_reply - answer a message

CONTENTS

Synopsis
Description

SYNOPSIS

#include <sys/msg.h>
int msg_reply(long sender, struct msg *msg);

DESCRIPTION

msg_reply() is used by a server to answer a request made by a client using msg_send(), and received in this server via msg_receive(). sender should be the value taken from the m_sender field of the received message. Like msg_send(), a message with optional segments may be sent back. Note that if the client did not specify M_READ, the segments will be verified, but not actually transferred. m_arg should be the number of bytes in the reply.

The client is blocked until this reply is sent. Thus, servers providing access to "slow" I/O (keyboards, RS-232) will often record the m_sender field, and delay the sending of a reply for extended periods of time.


MSG_REPLY (2)
Generated by manServer 1.06 from msg_repl.2 using man macros.