Class ErlConnection
Maintains a connection between a C# process and a remote Erlang, C# or C node. The object maintains connection state and allows data to be sent to and received from the peer
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX.Erlang
Assembly: NFX.Erlang.dll
Syntax
public class ErlConnection : ErlAbstractConnection, IDisposable
Remarks
In current implementation each connection creates a thread
Constructors
ErlConnection(ErlLocalNode, TcpClient)
Accept an incoming connection from a remote node
Declaration
public ErlConnection(ErlLocalNode node, TcpClient peer)
Parameters
Type | Name | Description |
---|---|---|
ErlLocalNode | node | |
System.Net.Sockets.TcpClient | peer |
Fields
m_Done
Declaration
protected bool m_Done
Field Value
Type | Description |
---|---|
System.Boolean |
Methods
Close()
Declaration
protected override void Close()
Overrides
Deliver(ErlConnectionException)
Deliver communication exceptions to the recipient
Declaration
protected override void Deliver(ErlConnectionException e)
Parameters
Type | Name | Description |
---|---|---|
ErlConnectionException | e |
Overrides
Deliver(ErlMsg)
Deliver messages to the recipient
Declaration
protected override void Deliver(ErlMsg msg)
Parameters
Type | Name | Description |
---|---|---|
ErlMsg | msg |
Overrides
Send(ErlPid, ErlAtom, IErlObject)
Declaration
public void Send(ErlPid from, ErlAtom dest, IErlObject msg)
Parameters
Type | Name | Description |
---|---|---|
ErlPid | from | |
ErlAtom | dest | |
IErlObject | msg |
Send(ErlPid, IErlObject)
Send an Erlang term to a Pid on a local or remote node
Declaration
public void Send(ErlPid dest, IErlObject msg)
Parameters
Type | Name | Description |
---|---|---|
ErlPid | dest | |
IErlObject | msg |
Implements
System.IDisposable