Sophie

Sophie

distrib > Mageia > 6 > x86_64 > media > core-updates > by-pkgid > eb1ec8bb814fe4d749258d46ae8ea988 > files > 858

erlang-doc-18.3.2-9.1.mga6.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_151) on Mon Jan 01 16:42:57 GMT 2018 -->
<title>com.ericsson.otp.erlang (Java-Erlang Interface Library)</title>
<meta name="date" content="2018-01-01">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
    try {
        if (location.href.indexOf('is-external=true') == -1) {
            parent.document.title="com.ericsson.otp.erlang (Java-Erlang Interface Library)";
        }
    }
    catch(err) {
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../com/ericsson/otp/erlang/package-summary.html">Package</a></li>
<li>Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev&nbsp;Package</li>
<li>Next&nbsp;Package</li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/ericsson/otp/erlang/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<a name="skip.navbar.top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 title="Package" class="title">Package&nbsp;com.ericsson.otp.erlang</h1>
<div class="docSummary">
<div class="block"> This package provides support for communication with Erlang and
representation of Erlang datatypes.</div>
</div>
<p>See:&nbsp;<a href="#package.description">Description</a></p>
</div>
<div class="contentContainer">
<ul class="blockList">
<li class="blockList">
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Interface Summary table, listing interfaces, and an explanation">
<caption><span>Interface Summary</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Interface</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpServerTransport.html" title="interface in com.ericsson.otp.erlang">OtpServerTransport</a></td>
<td class="colLast">
<div class="block">Server-side connection-oriented transport interface.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpTransport.html" title="interface in com.ericsson.otp.erlang">OtpTransport</a></td>
<td class="colLast">
<div class="block">Client-side connection-oriented transport interface.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpTransportFactory.html" title="interface in com.ericsson.otp.erlang">OtpTransportFactory</a></td>
<td class="colLast">
<div class="block">Factory class used to create client- and server-side transport instances.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation">
<caption><span>Class Summary</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/AbstractConnection.html" title="class in com.ericsson.otp.erlang">AbstractConnection</a></td>
<td class="colLast">
<div class="block">Maintains a connection between a Java process and a remote Erlang, Java or C
 node.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/AbstractNode.html" title="class in com.ericsson.otp.erlang">AbstractNode</a></td>
<td class="colLast">
<div class="block">
 Represents an OTP node.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/GenericQueue.html" title="class in com.ericsson.otp.erlang">GenericQueue</a></td>
<td class="colLast">
<div class="block">This class implements a generic FIFO queue.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpConnection.html" title="class in com.ericsson.otp.erlang">OtpConnection</a></td>
<td class="colLast">
<div class="block">Maintains a connection between a Java process and a remote Erlang, Java or C
 node.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpCookedConnection.html" title="class in com.ericsson.otp.erlang">OtpCookedConnection</a></td>
<td class="colLast">
<div class="block">
 Maintains a connection between a Java process and a remote Erlang, Java or C
 node.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpEpmd.html" title="class in com.ericsson.otp.erlang">OtpEpmd</a></td>
<td class="colLast">
<div class="block">Provides methods for registering, unregistering and looking up nodes with the
 Erlang portmapper daemon (Epmd).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangAtom.html" title="class in com.ericsson.otp.erlang">OtpErlangAtom</a></td>
<td class="colLast">
<div class="block">Provides a Java representation of Erlang atoms.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangBinary.html" title="class in com.ericsson.otp.erlang">OtpErlangBinary</a></td>
<td class="colLast">
<div class="block">Provides a Java representation of Erlang binaries.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangBitstr.html" title="class in com.ericsson.otp.erlang">OtpErlangBitstr</a></td>
<td class="colLast">
<div class="block">Provides a Java representation of Erlang bitstrs.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangBoolean.html" title="class in com.ericsson.otp.erlang">OtpErlangBoolean</a></td>
<td class="colLast">
<div class="block">Provides a Java representation of Erlang booleans, which are special cases of
 atoms with values 'true' and 'false'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangByte.html" title="class in com.ericsson.otp.erlang">OtpErlangByte</a></td>
<td class="colLast">
<div class="block">Provides a Java representation of Erlang integral types.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangChar.html" title="class in com.ericsson.otp.erlang">OtpErlangChar</a></td>
<td class="colLast">
<div class="block">Provides a Java representation of Erlang integral types.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangDouble.html" title="class in com.ericsson.otp.erlang">OtpErlangDouble</a></td>
<td class="colLast">
<div class="block">Provides a Java representation of Erlang floats and doubles.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangExternalFun.html" title="class in com.ericsson.otp.erlang">OtpErlangExternalFun</a></td>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangFloat.html" title="class in com.ericsson.otp.erlang">OtpErlangFloat</a></td>
<td class="colLast">
<div class="block">Provides a Java representation of Erlang floats and doubles.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangFun.html" title="class in com.ericsson.otp.erlang">OtpErlangFun</a></td>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangInt.html" title="class in com.ericsson.otp.erlang">OtpErlangInt</a></td>
<td class="colLast">
<div class="block">Provides a Java representation of Erlang integral types.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangList.html" title="class in com.ericsson.otp.erlang">OtpErlangList</a></td>
<td class="colLast">
<div class="block">Provides a Java representation of Erlang lists.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangList.SubList.html" title="class in com.ericsson.otp.erlang">OtpErlangList.SubList</a></td>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangLong.html" title="class in com.ericsson.otp.erlang">OtpErlangLong</a></td>
<td class="colLast">
<div class="block">Provides a Java representation of Erlang integral types.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangMap.html" title="class in com.ericsson.otp.erlang">OtpErlangMap</a></td>
<td class="colLast">
<div class="block">Provides a Java representation of Erlang maps.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</a></td>
<td class="colLast">
<div class="block">Base class of the Erlang data type classes.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangObject.Hash.html" title="class in com.ericsson.otp.erlang">OtpErlangObject.Hash</a></td>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangPid.html" title="class in com.ericsson.otp.erlang">OtpErlangPid</a></td>
<td class="colLast">
<div class="block">Provides a Java representation of Erlang PIDs.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangPort.html" title="class in com.ericsson.otp.erlang">OtpErlangPort</a></td>
<td class="colLast">
<div class="block">Provides a Java representation of Erlang ports.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangRef.html" title="class in com.ericsson.otp.erlang">OtpErlangRef</a></td>
<td class="colLast">
<div class="block">Provides a Java representation of Erlang refs.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangShort.html" title="class in com.ericsson.otp.erlang">OtpErlangShort</a></td>
<td class="colLast">
<div class="block">Provides a Java representation of Erlang integral types.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangString.html" title="class in com.ericsson.otp.erlang">OtpErlangString</a></td>
<td class="colLast">
<div class="block">Provides a Java representation of Erlang strings.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangTuple.html" title="class in com.ericsson.otp.erlang">OtpErlangTuple</a></td>
<td class="colLast">
<div class="block">Provides a Java representation of Erlang tuples.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangUInt.html" title="class in com.ericsson.otp.erlang">OtpErlangUInt</a></td>
<td class="colLast">
<div class="block">Provides a Java representation of Erlang integral types.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangUShort.html" title="class in com.ericsson.otp.erlang">OtpErlangUShort</a></td>
<td class="colLast">
<div class="block">Provides a Java representation of Erlang integral types.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpExternal.html" title="class in com.ericsson.otp.erlang">OtpExternal</a></td>
<td class="colLast">
<div class="block">Provides a collection of constants used when encoding and decoding Erlang
 terms.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html" title="class in com.ericsson.otp.erlang">OtpInputStream</a></td>
<td class="colLast">
<div class="block">Provides a stream for decoding Erlang terms from external format.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpLocalNode.html" title="class in com.ericsson.otp.erlang">OtpLocalNode</a></td>
<td class="colLast">
<div class="block">This class represents local node types.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpMbox.html" title="class in com.ericsson.otp.erlang">OtpMbox</a></td>
<td class="colLast">
<div class="block">
 Provides a simple mechanism for exchanging messages with Erlang processes or
 other instances of this class.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpMsg.html" title="class in com.ericsson.otp.erlang">OtpMsg</a></td>
<td class="colLast">
<div class="block">
 Provides a carrier for Erlang messages.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpNode.html" title="class in com.ericsson.otp.erlang">OtpNode</a></td>
<td class="colLast">
<div class="block">
 Represents a local OTP node.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpNodeStatus.html" title="class in com.ericsson.otp.erlang">OtpNodeStatus</a></td>
<td class="colLast">
<div class="block">
 Provides a callback mechanism for receiving status change information about
 other nodes in the system.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpOutputStream.html" title="class in com.ericsson.otp.erlang">OtpOutputStream</a></td>
<td class="colLast">
<div class="block">Provides a stream for encoding Erlang terms to external format, for
 transmission or storage.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpPeer.html" title="class in com.ericsson.otp.erlang">OtpPeer</a></td>
<td class="colLast">
<div class="block">Represents a remote OTP node.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpSelf.html" title="class in com.ericsson.otp.erlang">OtpSelf</a></td>
<td class="colLast">
<div class="block">Represents an OTP node.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpServer.html" title="class in com.ericsson.otp.erlang">OtpServer</a></td>
<td class="colLast">Deprecated
<div class="block"><span class="deprecationComment">the functionality of this class has been moved to <a href="../../../../com/ericsson/otp/erlang/OtpSelf.html" title="class in com.ericsson.otp.erlang"><code>OtpSelf</code></a>
             .</span></div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpServerSocketTransport.html" title="class in com.ericsson.otp.erlang">OtpServerSocketTransport</a></td>
<td class="colLast">
<div class="block">Default socket-based server transport</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpSocketTransport.html" title="class in com.ericsson.otp.erlang">OtpSocketTransport</a></td>
<td class="colLast">
<div class="block">Default socket-based client transport</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpSocketTransportFactory.html" title="class in com.ericsson.otp.erlang">OtpSocketTransportFactory</a></td>
<td class="colLast">
<div class="block">Default socket-based transport factory</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Exception Summary table, listing exceptions, and an explanation">
<caption><span>Exception Summary</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Exception</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpAuthException.html" title="class in com.ericsson.otp.erlang">OtpAuthException</a></td>
<td class="colLast">
<div class="block">Exception raised when a node attempts to establish a communication channel
 when it is not authorized to do so, or when a node sends a message containing
 an invalid cookie on an established channel.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></td>
<td class="colLast">
<div class="block">Exception raised when an attempt is made to create an Erlang term by decoding
 a sequence of bytes that does not represent the type of term that was
 requested.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangException.html" title="class in com.ericsson.otp.erlang">OtpErlangException</a></td>
<td class="colLast">
<div class="block">Base class for the other OTP erlang exception classes.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangExit.html" title="class in com.ericsson.otp.erlang">OtpErlangExit</a></td>
<td class="colLast">
<div class="block">Exception raised when a communication channel is broken.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpErlangRangeException.html" title="class in com.ericsson.otp.erlang">OtpErlangRangeException</a></td>
<td class="colLast">
<div class="block">Exception raised when an attempt is made to create an Erlang term with data
 that is out of range for the term in question.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../com/ericsson/otp/erlang/OtpException.html" title="class in com.ericsson.otp.erlang">OtpException</a></td>
<td class="colLast">
<div class="block">Base class for the other OTP exception classes.</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
<a name="package.description">
<!--   -->
</a>
<h2 title="Package com.ericsson.otp.erlang Description">Package com.ericsson.otp.erlang Description</h2>
<div class="block"><p> This package provides support for communication with Erlang and
representation of Erlang datatypes.

<p><em>Note:</em> By default, <code>jinterface</code> is only guaranteed
to be compatible with other Erlang/OTP components from the same release as
<code>jinterface</code> itself. For example, <code>jinterface</code>
from the OTP R10 release is not compatible with an Erlang emulator from
the OTP R9 release by default. <code>jinterface</code> can be set in
compatibility mode of an earlier release (not earlier that R7), though.
The compatibility mode is set by usage of the <code>OtpCompatRel</code>
property. By starting the jvm with the command-line argument
<code>-DOtpCompatRel=9</code>, <code>jinterface</code> will be compatible
with the R9 release of OTP. <em>Warning!</em> You may run into trouble if
this feature is used carelessly. Always make sure that all communicating
components are either from the same Erlang/OTP release, or from release
X and release Y where all components from release Y are in compatibility
mode of release X.

<p> The classes 
<a href="../../../../com/ericsson/otp/erlang/OtpErlangList.html" title="class in com.ericsson.otp.erlang"><code>OtpErlangList</code></a>, 
<a href="../../../../com/ericsson/otp/erlang/OtpErlangTuple.html" title="class in com.ericsson.otp.erlang"><code>OtpErlangTuple</code></a>,
<a href="../../../../com/ericsson/otp/erlang/OtpErlangBinary.html" title="class in com.ericsson.otp.erlang"><code>OtpErlangBinary</code></a>,
<a href="../../../../com/ericsson/otp/erlang/OtpErlangAtom.html" title="class in com.ericsson.otp.erlang"><code>OtpErlangAtom</code></a>,
<a href="../../../../com/ericsson/otp/erlang/OtpErlangBoolean.html" title="class in com.ericsson.otp.erlang"><code>OtpErlangBoolean</code></a>,
<a href="../../../../com/ericsson/otp/erlang/OtpErlangByte.html" title="class in com.ericsson.otp.erlang"><code>OtpErlangByte</code></a>,
<a href="../../../../com/ericsson/otp/erlang/OtpErlangChar.html" title="class in com.ericsson.otp.erlang"><code>OtpErlangChar</code></a>,
<a href="../../../../com/ericsson/otp/erlang/OtpErlangDouble.html" title="class in com.ericsson.otp.erlang"><code>OtpErlangDouble</code></a>,
<a href="../../../../com/ericsson/otp/erlang/OtpErlangFloat.html" title="class in com.ericsson.otp.erlang"><code>OtpErlangFloat</code></a>,
<a href="../../../../com/ericsson/otp/erlang/OtpErlangLong.html" title="class in com.ericsson.otp.erlang"><code>OtpErlangLong</code></a>,
<a href="../../../../com/ericsson/otp/erlang/OtpErlangInt.html" title="class in com.ericsson.otp.erlang"><code>OtpErlangInt</code></a>,
<a href="../../../../com/ericsson/otp/erlang/OtpErlangUInt.html" title="class in com.ericsson.otp.erlang"><code>OtpErlangUInt</code></a>,
<a href="../../../../com/ericsson/otp/erlang/OtpErlangShort.html" title="class in com.ericsson.otp.erlang"><code>OtpErlangShort</code></a>,
<a href="../../../../com/ericsson/otp/erlang/OtpErlangUShort.html" title="class in com.ericsson.otp.erlang"><code>OtpErlangUShort</code></a>,
<a href="../../../../com/ericsson/otp/erlang/OtpErlangString.html" title="class in com.ericsson.otp.erlang"><code>OtpErlangString</code></a>,
<a href="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang"><code>OtpErlangObject</code></a>,
<a href="../../../../com/ericsson/otp/erlang/OtpErlangPid.html" title="class in com.ericsson.otp.erlang"><code>OtpErlangPid</code></a>,
<a href="../../../../com/ericsson/otp/erlang/OtpErlangPort.html" title="class in com.ericsson.otp.erlang"><code>OtpErlangPort</code></a>,
and <a href="../../../../com/ericsson/otp/erlang/OtpErlangRef.html" title="class in com.ericsson.otp.erlang"><code>OtpErlangRef</code></a>
represent the various Erlang datatypes.


<p> There are two basic mechanisms for communicating with Erlang,
described briefly here. Note that the two mechanisms are not intended
to be used together. Which mechanism you choose depends on your
application and the level of control it needs. </p>

<p> You can use <a href="../../../../com/ericsson/otp/erlang/OtpNode.html" title="class in com.ericsson.otp.erlang"><code>OtpNode</code></a>, which can
manage incoming and outgoing connections for you. With <a href="../../../../com/ericsson/otp/erlang/OtpNode.html" title="class in com.ericsson.otp.erlang"><code>OtpNode</code></a> a thread is automatically started to
listen for incoming connections, make necessary outgoing connections,
and dispatch messages to their recipients. <a href="../../../../com/ericsson/otp/erlang/OtpNode.html" title="class in com.ericsson.otp.erlang"><code>OtpNode</code></a> supports the concept of <a href="../../../../com/ericsson/otp/erlang/OtpMbox.html" title="class in com.ericsson.otp.erlang"><code>mailboxes</code></a>, allowing you to have
several Java components communicating independently with Erlang.
</p>

<pre>
  OtpNode node = new OtpNode("bingo");
  OtpMbox mbox = node.createMbox();
  
  mbox.send("foo@localhost",new OtpErlangAtom("hej"));
</pre>

<p> If you need more control (but less support from the library), you
can manage connections yourself using the <a href="../../../../com/ericsson/otp/erlang/OtpSelf.html" title="class in com.ericsson.otp.erlang"><code>OtpSelf</code></a> and <a href="../../../../com/ericsson/otp/erlang/OtpConnection.html" title="class in com.ericsson.otp.erlang"><code>OtpConnection</code></a> classes, in which case you can
control explicitly which connections are made and which messages are
sent. Received messages are not dispatched by <a href="../../../../com/ericsson/otp/erlang/OtpConnection.html" title="class in com.ericsson.otp.erlang"><code>OtpConnection</code></a>. </p>

<p> The classes <a href="../../../../com/ericsson/otp/erlang/OtpPeer.html" title="class in com.ericsson.otp.erlang"><code>OtpPeer</code></a>, <a href="../../../../com/ericsson/otp/erlang/OtpSelf.html" title="class in com.ericsson.otp.erlang"><code>OtpSelf</code></a> and <a href="../../../../com/ericsson/otp/erlang/OtpServer.html" title="class in com.ericsson.otp.erlang"><code>OtpServer</code></a> are used to represent OTP nodes and
are neccessary in order to set up communication between the Java
thread and a remote node. Once a connection has been established, it
is represented by an <a href="../../../../com/ericsson/otp/erlang/OtpConnection.html" title="class in com.ericsson.otp.erlang"><code>OtpConnection</code></a>,
through which all communication goes.

<p> Setting up a connection with a remote node is straightforward. You
create objects representing the local and remote nodes, then call the
local node's <a href="../../../../com/ericsson/otp/erlang/OtpSelf.html#connect-com.ericsson.otp.erlang.OtpPeer-"><code>connect()</code></a> method:

<pre>
  OtpSelf self = new OtpSelf("client","cookie");
  OtpPeer other = new OtpPeer("server");
  OtpConnection conn = self.connect(other);
</pre>

<p>If you wish to be able to accept incoming connections as well as
make outgoing ones, you first must register the listen port with EPMD
(described in the Erlang documentation). Once that is done, you can
accept incoming connections:

<pre>
  OtpServer self = new OtpSelf("server","cookie");
  self.publishPort();
  OtpConnection conn = self.accept();
</pre>


<p>Once the connection is established by one of the above methods (<a href="../../../../com/ericsson/otp/erlang/OtpSelf.html#connect-com.ericsson.otp.erlang.OtpPeer-"><code>connect()</code></a> or <a href="../../../../com/ericsson/otp/erlang/OtpSelf.html#accept--"><code>accept()</code></a>), you can use the resulting <a href="../../../../com/ericsson/otp/erlang/OtpConnection.html" title="class in com.ericsson.otp.erlang"><code>OtpConnection</code></a> to send and
receive messages:

<pre>
  OtpErlangAtom msg = new ErlangOtpAtom("hello");
  conn.send("echoserver", msg);
  
  OtpErlangObject reply = conn.receive();
  System.out.println("Received " + reply);
</pre>

<p> Finally, you can get an even greater level of control (and even
less support from the library) by subclassing <a href="../../../../com/ericsson/otp/erlang/AbstractConnection.html" title="class in com.ericsson.otp.erlang"><code>AbstractConnection</code></a> and implementing the
communication primitives needed by your application. </p></div>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../com/ericsson/otp/erlang/package-summary.html">Package</a></li>
<li>Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev&nbsp;Package</li>
<li>Next&nbsp;Package</li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/ericsson/otp/erlang/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<a name="skip.navbar.bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>