|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmoss.ipc.MNamedMsgQ
public class MNamedMsgQ
this class provides named message-queues. it allows kernel and user processes to exchange messages, broadcast messages, etc.
| Nested Class Summary | |
|---|---|
static class |
MNamedMsgQ.MNamedMsg
this class is used to return data in a nmq_read() call |
| Constructor Summary | |
|---|---|
MNamedMsgQ()
|
|
| Method Summary | |
|---|---|
static void |
finalinit()
performs final initialisation (in context of the init-task) |
static void |
init_namedmsgq()
called to initialise |
static int |
nmq_close(MFile handle,
java.lang.String name)
closes a named message queue -- this is called locally by PrivMsgQ.close() |
static int |
nmq_open(MFile handle,
java.lang.String name)
opens a named message queue -- creates the queue if it doesn't exist |
static int |
nmq_recv(MFile handle,
MNamedMsgQ.MNamedMsg msg)
waits for a message from the named message queue |
static int |
nmq_send(MFile handle,
int type,
java.lang.Object msg)
sends a message to the named message queue |
static void |
shutdown_namedmsgq()
called to shut-down |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MNamedMsgQ()
| Method Detail |
|---|
public static void init_namedmsgq()
public static void finalinit()
public static void shutdown_namedmsgq()
public static int nmq_open(MFile handle,
java.lang.String name)
handle - file-handle to be associated with this queuename - name of the message queue to create
public static int nmq_close(MFile handle,
java.lang.String name)
handle - file-handle associated with this queue (one of them)name - name of this message queue
public static int nmq_send(MFile handle,
int type,
java.lang.Object msg)
handle - handle on the message-queuetype - application defined type fieldmsg - object message
public static int nmq_recv(MFile handle,
MNamedMsgQ.MNamedMsg msg)
handle - handle on the message-queuemsg - where the message is stored
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||