ErlMsg ClassNFX Class Library

[This is preliminary documentation and is subject to change.]

Provides a distributed carrier for Erlang messages
Inheritance Hierarchy

OnlineSystem Object
  NFX.Erlang ErlMsg

Namespace: NFX.Erlang
Assembly: NFX.Erlang (in NFX.Erlang.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

public class ErlMsg : IQueable
Remarks

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.
See Also