Class ErlAbstractNode
Inheritance
System.Object
ErlAbstractNode
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)
Assembly: NFX.Erlang.dll
Syntax
public abstract class ErlAbstractNode : Service, IApplicationComponent, IDisposable, IService, INamed, IConfigurable, ILocalizedTimeProvider
Constructors
ErlAbstractNode(String, IConfigSectionNode)
Declaration
protected ErlAbstractNode(string name, IConfigSectionNode config)
Parameters
ErlAbstractNode(String, ErlAtom, Boolean)
Create a node with the given name and cookie
Declaration
protected ErlAbstractNode(string name, ErlAtom cookie, bool shortName)
Parameters
Type |
Name |
Description |
System.String |
name |
Node name in the form "name" or "name@hostname"
|
ErlAtom |
cookie |
Security cookie used to connect to this/other node(s)
|
System.Boolean |
shortName |
Use short/long host names
|
ErlAbstractNode(String, Boolean)
Create a node with the given name and the default cookie
Declaration
protected ErlAbstractNode(string node, bool shortName)
Parameters
Type |
Name |
Description |
System.String |
node |
|
System.Boolean |
shortName |
|
Fields
m_Creation
Declaration
Field Value
Type |
Description |
System.Int32 |
|
m_TcpKeepAlive
Declaration
[Config("$tcp-keep-alive")]
protected bool m_TcpKeepAlive
Field Value
Type |
Description |
System.Boolean |
|
m_TcpLinger
Declaration
[Config("$tcp-linger")]
protected bool m_TcpLinger
Field Value
Type |
Description |
System.Boolean |
|
m_TcpNoDelay
Declaration
[Config("$tcp-no-delay")]
protected bool m_TcpNoDelay
Field Value
Type |
Description |
System.Boolean |
|
m_TcpRcvBufSize
Declaration
[Config("$tcp-rcv-buf-size")]
protected int m_TcpRcvBufSize
Field Value
Type |
Description |
System.Int32 |
|
m_TcpSndBufSize
Declaration
[Config("$tcp-snd-buf-size")]
protected int m_TcpSndBufSize
Field Value
Type |
Description |
System.Int32 |
|
Properties
AliveName
Get the alivename part of the hostname. Nodenames are composed of
two parts, an alivename and a hostname, separated by '@'. This
method returns the part of the nodename preceding the '@'
Declaration
public string AliveName { get; }
Property Value
Type |
Description |
System.String |
|
Cookie
Get the authorization cookie used by this node
Declaration
[Config("$cookie")]
public ErlAtom Cookie { get; set; }
Property Value
Host
Get the hostname part of the nodename. Nodenames are composed of
two parts, an alivename and a hostname, separated by '@'. This
method returns the part of the nodename following the '@'
Declaration
public string Host { get; }
Property Value
Type |
Description |
System.String |
|
NodeLongName
Get the long name of this node
Declaration
public ErlAtom NodeLongName { get; }
Property Value
NodeName
Get the name of this node (short or long depending on UseShortName)
Declaration
public ErlAtom NodeName { get; }
Property Value
Port
Get the port number used by this node.
For local node the value may be 0 if the node was not registered with
the EPMD port mapper
Declaration
Property Value
Type |
Description |
System.Int32 |
|
TcpKeepAlive
Declaration
public bool TcpKeepAlive { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
TcpLinger
Declaration
public bool TcpLinger { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
TcpNoDelay
Declaration
public bool TcpNoDelay { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
TcpRcvBufSize
Declaration
public int TcpRcvBufSize { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
TcpSndBufSize
Declaration
public int TcpSndBufSize { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
Declaration
protected override void DoConfigure(IConfigSectionNode node)
Parameters
Overrides
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
tryReadStringFromFile(String)
Declaration
protected static string tryReadStringFromFile(string filename)
Parameters
Type |
Name |
Description |
System.String |
filename |
|
Returns
Type |
Description |
System.String |
|
Implements
System.IDisposable
Extension Methods