msg_connect - connect to server
Synopsis
Description
#include <sys/msg.h>
int msg_connect(port_name pn, int mode);
The msg_connect() system service connects a client to a server. pn specifies the server which passed this value in its call to msg_port().mode is passed to the server, and specifies the type of access requested. By convention, these bits are defined in <sys/fs.h> and include:
ACC_READ - Read access ACC_WRITE - Write access ACC_EXEC - Execute ACC_CREATE - Create/truncate ACC_DIR - Access directory ACC_CHMOD - Allow changes of mode and ownershipA connection attempt is synchronous; this call will not return until the server has received the call, processed it, and responded with either a msg_accept(), msg_err(), or terminated due to an explicit exit() or an unhandled event.
MSG_CONNECT (2) |