[This is preliminary documentation and is subject to change.]
Provides a distributed carrier for Erlang messages
System Object NFX.Erlang ErlMsgNamespace: NFX.ErlangAssembly: NFX.Erlang (in NFX.Erlang.dll) Version: 3.0.0.1 (3.0.0.1)
public class ErlMsg : IQueable
public class ErlMsg : IQueable
Public Class ErlMsg
Implements IQueable
Public Class ErlMsg
Implements IQueable
public ref class ErlMsg : IQueable
public ref class ErlMsg : IQueable
type ErlMsg =
class
interface IQueable
end
type ErlMsg =
class
interface IQueable
end
Instances of this class are created to package header and
payload information in received Erlang messages so that the
recipient can obtain both parts with a single call to
receiveMsg
The header information that is available is as follows:
- a tag indicating the type of message
- the intended recipient of the message, either as a
ErlPid or as a ErlAtom, but never both.
- (sometimes) the sender of the message. Due to some eccentric
characteristics of the Erlang distribution protocol, not
all messages have information about the sending process. In
particular, only messages whose tag is RegSend
contain sender information.
Message are sent using the Erlang external format (see separate
documentation). When a message is received and delivered to the
recipient
ErlMbox, the body of the message is still
in this external representation until
Msg
is called, at which point the message is decoded. A copy of the
decoded message is stored in the OtpMsg so that subsequent calls to
Msg do not require that the message be decoded
a second time.