Class Msg

Package :
ipc

This class provides an inter process messaging facility. The implementation requires the accompanying C library uniipclib.so to be on the library path.

Instances of this class should not be created directly, but rather using the factory procedures open_public_msg, create_public_msg and create_private_msg

Source

Class summary
Methods defined in this class
attempt() get_id() poll(t) receive() remove() send(o)
Variables defined in this class
id

Method detail

attempt()

Attempt to get an object from the queue, failing if one is not ready immediately.
Source

get_id()

Return the underlying id of the queue.
Source

poll(t)

Poll the queue for an object for t milliseconds. If an object is not received within that time, fail, otherwise return it.
Source

receive()

Receive an object from the queue, waiting if necessary.
Source

remove()

Clean up the resources used by the queue. This should be called by the parent process after the queue is no longer needed.
Source

send(o)

Send the given object. The object may be an arbitrary Icon structure, and will be encoded into a string by the encode() procedure. As such, if the encoded object contains a class then that class must subclass ClassCoding
Source

Variable detail

id