msg_err - send back an error
Synopsis
Description
#include <sys/msg.h>
int msg_err(long sender, char *errstring);
msg_err() is used to return an error from a server to a client. Most commonly, it is used to reply with error to a request received via msg_receive(). The client sees his msg_send() return a -1, and can access the errstring by calling strerror().The clients connection remains functional, and a new request can be sent via a new msg_send() call.
MSG_ERR (2) |