<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.5.0) on Thu Dec 06 18:47:26 CET 2012 --> <TITLE> OtpConnection (Java-Erlang Interface Library) </TITLE> <META NAME="keywords" CONTENT="com.ericsson.otp.erlang.OtpConnection class"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="OtpConnection (Java-Erlang Interface Library)"; } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../com/ericsson/otp/erlang/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <A HREF="#main"><FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/ericsson/otp/erlang/OtpAuthException.html" title="class in com.ericsson.otp.erlang"><B>PREV CLASS</B></A> <A HREF="../../../../com/ericsson/otp/erlang/OtpCookedConnection.html" title="class in com.ericsson.otp.erlang"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/ericsson/otp/erlang/OtpConnection.html" target="_top"><B>FRAMES</B></A> <A HREF="OtpConnection.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#nested_classes_inherited_from_class_java.lang.Thread">NESTED</A> | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <A NAME="main"></A> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> com.ericsson.otp.erlang</FONT> <BR> Class OtpConnection</H2> <PRE> java.lang.Object <IMG SRC="../../../../resources/inherit.gif" ALT="extended by ">java.lang.Thread <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html" title="class in com.ericsson.otp.erlang">com.ericsson.otp.erlang.AbstractConnection</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.ericsson.otp.erlang.OtpConnection</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD>java.lang.Runnable</DD> </DL> <HR> <DL> <DT><PRE>public class <B>OtpConnection</B><DT>extends <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html" title="class in com.ericsson.otp.erlang">AbstractConnection</A></DL> </PRE> <P> Maintains a connection between a Java process and a remote Erlang, Java or C node. The object maintains connection state and allows data to be sent to and received from the peer. <p> Once a connection is established between the local node and a remote node, the connection object can be used to send and receive messages between the nodes and make rpc calls (assuming that the remote node is a real Erlang node). <p> The various receive methods are all blocking and will return only when a valid message has been received or an exception is raised. <p> If an exception occurs in any of the methods in this class, the connection will be closed and must be explicitely reopened in order to resume communication with the peer. <p> It is not possible to create an instance of this class directly. OtpConnection objects are returned by <A HREF="../../../../com/ericsson/otp/erlang/OtpSelf.html#connect(com.ericsson.otp.erlang.OtpPeer)"><CODE>OtpSelf.connect()</CODE></A> and <A HREF="../../../../com/ericsson/otp/erlang/OtpSelf.html#accept()"><CODE>OtpSelf.accept()</CODE></A>. <P> <P> <HR> <P> <!-- ======== NESTED CLASS SUMMARY ======== --> <A NAME="nested_class_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Nested Class Summary</B></FONT></TH> </TR> </TABLE> <A NAME="nested_classes_inherited_from_class_java.lang.Thread"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Nested classes/interfaces inherited from class java.lang.Thread</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler</CODE></TD> </TR> </TABLE> <!-- =========== FIELD SUMMARY =========== --> <A NAME="field_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Field Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected <A HREF="../../../../com/ericsson/otp/erlang/GenericQueue.html" title="class in com.ericsson.otp.erlang">GenericQueue</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpConnection.html#queue">queue</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected <A HREF="../../../../com/ericsson/otp/erlang/OtpSelf.html" title="class in com.ericsson.otp.erlang">OtpSelf</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpConnection.html#self">self</A></B></CODE> <BR> </TD> </TR> </TABLE> <A NAME="fields_inherited_from_class_com.ericsson.otp.erlang.AbstractConnection"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Fields inherited from class com.ericsson.otp.erlang.<A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html" title="class in com.ericsson.otp.erlang">AbstractConnection</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#ChallengeAck">ChallengeAck</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#ChallengeReply">ChallengeReply</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#ChallengeStatus">ChallengeStatus</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#connected">connected</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#cookieOk">cookieOk</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#ctrlThreshold">ctrlThreshold</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#defaultLevel">defaultLevel</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#exit2Tag">exit2Tag</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#exit2TTTag">exit2TTTag</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#exitTag">exitTag</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#exitTTTag">exitTTTag</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#groupLeaderTag">groupLeaderTag</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#handshakeThreshold">handshakeThreshold</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#headerLen">headerLen</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#linkTag">linkTag</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#passThrough">passThrough</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#peer">peer</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#random">random</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#regSendTag">regSendTag</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#regSendTTTag">regSendTTTag</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#sendCookie">sendCookie</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#sendTag">sendTag</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#sendThreshold">sendThreshold</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#sendTTTag">sendTTTag</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#socket">socket</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#traceLevel">traceLevel</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#unlinkTag">unlinkTag</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#version">version</A></CODE></TD> </TR> </TABLE> <A NAME="fields_inherited_from_class_java.lang.Thread"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Fields inherited from class java.lang.Thread</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY</CODE></TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpConnection.html#deliver(java.lang.Exception)">deliver</A></B>(java.lang.Exception e)</CODE> <BR> Deliver communication exceptions to the recipient.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpConnection.html#deliver(com.ericsson.otp.erlang.OtpMsg)">deliver</A></B>(<A HREF="../../../../com/ericsson/otp/erlang/OtpMsg.html" title="class in com.ericsson.otp.erlang">OtpMsg</A> msg)</CODE> <BR> Deliver messages to the recipient.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpConnection.html#exit(com.ericsson.otp.erlang.OtpErlangPid, com.ericsson.otp.erlang.OtpErlangObject)">exit</A></B>(<A HREF="../../../../com/ericsson/otp/erlang/OtpErlangPid.html" title="class in com.ericsson.otp.erlang">OtpErlangPid</A> dest, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A> reason)</CODE> <BR> Send an exit signal to a remote process.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpConnection.html#link(com.ericsson.otp.erlang.OtpErlangPid)">link</A></B>(<A HREF="../../../../com/ericsson/otp/erlang/OtpErlangPid.html" title="class in com.ericsson.otp.erlang">OtpErlangPid</A> dest)</CODE> <BR> Create a link between the local node and the specified process on the remote node.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpConnection.html#msgCount()">msgCount</A></B>()</CODE> <BR> Return the number of messages currently waiting in the receive queue for this connection.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/ericsson/otp/erlang/OtpPeer.html" title="class in com.ericsson.otp.erlang">OtpPeer</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpConnection.html#peer()">peer</A></B>()</CODE> <BR> Get information about the node at the peer end of this connection.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpConnection.html#receive()">receive</A></B>()</CODE> <BR> Receive a message from a remote process.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpConnection.html#receive(long)">receive</A></B>(long timeout)</CODE> <BR> Receive a message from a remote process.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/ericsson/otp/erlang/OtpInputStream.html" title="class in com.ericsson.otp.erlang">OtpInputStream</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpConnection.html#receiveBuf()">receiveBuf</A></B>()</CODE> <BR> Receive a raw (still encoded) message from a remote process.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/ericsson/otp/erlang/OtpInputStream.html" title="class in com.ericsson.otp.erlang">OtpInputStream</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpConnection.html#receiveBuf(long)">receiveBuf</A></B>(long timeout)</CODE> <BR> Receive a raw (still encoded) message from a remote process.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/ericsson/otp/erlang/OtpMsg.html" title="class in com.ericsson.otp.erlang">OtpMsg</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpConnection.html#receiveMsg()">receiveMsg</A></B>()</CODE> <BR> Receive a messge complete with sender and recipient information.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/ericsson/otp/erlang/OtpMsg.html" title="class in com.ericsson.otp.erlang">OtpMsg</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpConnection.html#receiveMsg(long)">receiveMsg</A></B>(long timeout)</CODE> <BR> Receive a messge complete with sender and recipient information.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpConnection.html#receiveRPC()">receiveRPC</A></B>()</CODE> <BR> Receive an RPC reply from the remote Erlang node.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/ericsson/otp/erlang/OtpSelf.html" title="class in com.ericsson.otp.erlang">OtpSelf</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpConnection.html#self()">self</A></B>()</CODE> <BR> Get information about the node at the local end of this connection.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpConnection.html#send(com.ericsson.otp.erlang.OtpErlangPid, com.ericsson.otp.erlang.OtpErlangObject)">send</A></B>(<A HREF="../../../../com/ericsson/otp/erlang/OtpErlangPid.html" title="class in com.ericsson.otp.erlang">OtpErlangPid</A> dest, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A> msg)</CODE> <BR> Send a message to a process on a remote node.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpConnection.html#send(java.lang.String, com.ericsson.otp.erlang.OtpErlangObject)">send</A></B>(java.lang.String dest, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A> msg)</CODE> <BR> Send a message to a named process on a remote node.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpConnection.html#sendBuf(com.ericsson.otp.erlang.OtpErlangPid, com.ericsson.otp.erlang.OtpOutputStream)">sendBuf</A></B>(<A HREF="../../../../com/ericsson/otp/erlang/OtpErlangPid.html" title="class in com.ericsson.otp.erlang">OtpErlangPid</A> dest, <A HREF="../../../../com/ericsson/otp/erlang/OtpOutputStream.html" title="class in com.ericsson.otp.erlang">OtpOutputStream</A> payload)</CODE> <BR> Send a pre-encoded message to a process on a remote node.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpConnection.html#sendBuf(java.lang.String, com.ericsson.otp.erlang.OtpOutputStream)">sendBuf</A></B>(java.lang.String dest, <A HREF="../../../../com/ericsson/otp/erlang/OtpOutputStream.html" title="class in com.ericsson.otp.erlang">OtpOutputStream</A> payload)</CODE> <BR> Send a pre-encoded message to a named process on a remote node.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpConnection.html#sendRPC(java.lang.String, java.lang.String, com.ericsson.otp.erlang.OtpErlangList)">sendRPC</A></B>(java.lang.String mod, java.lang.String fun, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangList.html" title="class in com.ericsson.otp.erlang">OtpErlangList</A> args)</CODE> <BR> Send an RPC request to the remote Erlang node.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpConnection.html#sendRPC(java.lang.String, java.lang.String, com.ericsson.otp.erlang.OtpErlangObject[])">sendRPC</A></B>(java.lang.String mod, java.lang.String fun, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A>[] args)</CODE> <BR> Send an RPC request to the remote Erlang node.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpConnection.html#unlink(com.ericsson.otp.erlang.OtpErlangPid)">unlink</A></B>(<A HREF="../../../../com/ericsson/otp/erlang/OtpErlangPid.html" title="class in com.ericsson.otp.erlang">OtpErlangPid</A> dest)</CODE> <BR> Remove a link between the local node and the specified process on the remote node.</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.ericsson.otp.erlang.AbstractConnection"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class com.ericsson.otp.erlang.<A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html" title="class in com.ericsson.otp.erlang">AbstractConnection</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#close()">close</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#do_send(com.ericsson.otp.erlang.OtpOutputStream)">do_send</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#do_send(com.ericsson.otp.erlang.OtpOutputStream, com.ericsson.otp.erlang.OtpOutputStream)">do_send</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#doAccept()">doAccept</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#doConnect(int)">doConnect</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#finalize()">finalize</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#genChallenge()">genChallenge</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#genDigest(int, java.lang.String)">genDigest</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#getFlags()">getFlags</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#getTraceLevel()">getTraceLevel</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#headerType(com.ericsson.otp.erlang.OtpErlangObject)">headerType</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#isConnected()">isConnected</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#read2BytePackage()">read2BytePackage</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#readSock(java.net.Socket, byte[])">readSock</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#recvChallenge()">recvChallenge</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#recvChallengeAck(int)">recvChallengeAck</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#recvChallengeReply(int)">recvChallengeReply</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#recvName(com.ericsson.otp.erlang.OtpPeer)">recvName</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#recvStatus()">recvStatus</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#run()">run</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#sendBuf(com.ericsson.otp.erlang.OtpErlangPid, com.ericsson.otp.erlang.OtpErlangPid, com.ericsson.otp.erlang.OtpOutputStream)">sendBuf</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#sendBuf(com.ericsson.otp.erlang.OtpErlangPid, java.lang.String, com.ericsson.otp.erlang.OtpOutputStream)">sendBuf</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#sendChallenge(int, int, int)">sendChallenge</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#sendChallengeAck(byte[])">sendChallengeAck</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#sendChallengeReply(int, byte[])">sendChallengeReply</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#sendExit(com.ericsson.otp.erlang.OtpErlangPid, com.ericsson.otp.erlang.OtpErlangPid, com.ericsson.otp.erlang.OtpErlangObject)">sendExit</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#sendExit2(com.ericsson.otp.erlang.OtpErlangPid, com.ericsson.otp.erlang.OtpErlangPid, com.ericsson.otp.erlang.OtpErlangObject)">sendExit2</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#sendLink(com.ericsson.otp.erlang.OtpErlangPid, com.ericsson.otp.erlang.OtpErlangPid)">sendLink</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#sendName(int, int)">sendName</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#sendStatus(java.lang.String)">sendStatus</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#sendUnlink(com.ericsson.otp.erlang.OtpErlangPid, com.ericsson.otp.erlang.OtpErlangPid)">sendUnlink</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#setFlags(int)">setFlags</A>, <A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#setTraceLevel(int)">setTraceLevel</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.lang.Thread"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class java.lang.Thread</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield</CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD> </TR> </TABLE> <P> <!-- ============ FIELD DETAIL =========== --> <A NAME="field_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Field Detail</B></FONT></TH> </TR> </TABLE> <A NAME="self"><!-- --></A><H3> self</H3> <PRE> protected <A HREF="../../../../com/ericsson/otp/erlang/OtpSelf.html" title="class in com.ericsson.otp.erlang">OtpSelf</A> <B>self</B></PRE> <DL> <DL> </DL> </DL> <HR> <A NAME="queue"><!-- --></A><H3> queue</H3> <PRE> protected <A HREF="../../../../com/ericsson/otp/erlang/GenericQueue.html" title="class in com.ericsson.otp.erlang">GenericQueue</A> <B>queue</B></PRE> <DL> <DL> </DL> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Method Detail</B></FONT></TH> </TR> </TABLE> <A NAME="deliver(java.lang.Exception)"><!-- --></A><H3> deliver</H3> <PRE> public void <B>deliver</B>(java.lang.Exception e)</PRE> <DL> <DD><B>Description copied from class: <CODE><A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#deliver(java.lang.Exception)">AbstractConnection</A></CODE></B></DD> <DD>Deliver communication exceptions to the recipient. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#deliver(java.lang.Exception)">deliver</A></CODE> in class <CODE><A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html" title="class in com.ericsson.otp.erlang">AbstractConnection</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="deliver(com.ericsson.otp.erlang.OtpMsg)"><!-- --></A><H3> deliver</H3> <PRE> public void <B>deliver</B>(<A HREF="../../../../com/ericsson/otp/erlang/OtpMsg.html" title="class in com.ericsson.otp.erlang">OtpMsg</A> msg)</PRE> <DL> <DD><B>Description copied from class: <CODE><A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#deliver(com.ericsson.otp.erlang.OtpMsg)">AbstractConnection</A></CODE></B></DD> <DD>Deliver messages to the recipient. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html#deliver(com.ericsson.otp.erlang.OtpMsg)">deliver</A></CODE> in class <CODE><A HREF="../../../../com/ericsson/otp/erlang/AbstractConnection.html" title="class in com.ericsson.otp.erlang">AbstractConnection</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="peer()"><!-- --></A><H3> peer</H3> <PRE> public <A HREF="../../../../com/ericsson/otp/erlang/OtpPeer.html" title="class in com.ericsson.otp.erlang">OtpPeer</A> <B>peer</B>()</PRE> <DL> <DD>Get information about the node at the peer end of this connection. <P> <DD><DL> <DT><B>Returns:</B><DD>the <A HREF="../../../../com/ericsson/otp/erlang/OtpPeer.html" title="class in com.ericsson.otp.erlang"><CODE>Node</CODE></A> representing the peer node.</DL> </DD> </DL> <HR> <A NAME="self()"><!-- --></A><H3> self</H3> <PRE> public <A HREF="../../../../com/ericsson/otp/erlang/OtpSelf.html" title="class in com.ericsson.otp.erlang">OtpSelf</A> <B>self</B>()</PRE> <DL> <DD>Get information about the node at the local end of this connection. <P> <DD><DL> <DT><B>Returns:</B><DD>the <A HREF="../../../../com/ericsson/otp/erlang/OtpSelf.html" title="class in com.ericsson.otp.erlang"><CODE>Node</CODE></A> representing the local node.</DL> </DD> </DL> <HR> <A NAME="msgCount()"><!-- --></A><H3> msgCount</H3> <PRE> public int <B>msgCount</B>()</PRE> <DL> <DD>Return the number of messages currently waiting in the receive queue for this connection. <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="receive()"><!-- --></A><H3> receive</H3> <PRE> public <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A> <B>receive</B>() throws java.io.IOException, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangExit.html" title="class in com.ericsson.otp.erlang">OtpErlangExit</A>, <A HREF="../../../../com/ericsson/otp/erlang/OtpAuthException.html" title="class in com.ericsson.otp.erlang">OtpAuthException</A></PRE> <DL> <DD>Receive a message from a remote process. This method blocks until a valid message is received or an exception is raised. <p> If the remote node sends a message that cannot be decoded properly, the connection is closed and the method throws an exception. <P> <DD><DL> <DT><B>Returns:</B><DD>an object containing a single Erlang term. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - if the connection is not active or a communication error occurs. <DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangExit.html" title="class in com.ericsson.otp.erlang">OtpErlangExit</A></CODE> - if an exit signal is received from a process on the peer node. <DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpAuthException.html" title="class in com.ericsson.otp.erlang">OtpAuthException</A></CODE> - if the remote node sends a message containing an invalid cookie.</DL> </DD> </DL> <HR> <A NAME="receive(long)"><!-- --></A><H3> receive</H3> <PRE> public <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A> <B>receive</B>(long timeout) throws java.lang.InterruptedException, java.io.IOException, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangExit.html" title="class in com.ericsson.otp.erlang">OtpErlangExit</A>, <A HREF="../../../../com/ericsson/otp/erlang/OtpAuthException.html" title="class in com.ericsson.otp.erlang">OtpAuthException</A></PRE> <DL> <DD>Receive a message from a remote process. This method blocks at most for the specified time, until a valid message is received or an exception is raised. <p> If the remote node sends a message that cannot be decoded properly, the connection is closed and the method throws an exception. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>timeout</CODE> - the time in milliseconds that this operation will block. Specify 0 to poll the queue. <DT><B>Returns:</B><DD>an object containing a single Erlang term. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - if the connection is not active or a communication error occurs. <DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangExit.html" title="class in com.ericsson.otp.erlang">OtpErlangExit</A></CODE> - if an exit signal is received from a process on the peer node. <DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpAuthException.html" title="class in com.ericsson.otp.erlang">OtpAuthException</A></CODE> - if the remote node sends a message containing an invalid cookie. <DD><CODE>java.lang.InterruptedException</CODE> - if no message if the method times out before a message becomes available.</DL> </DD> </DL> <HR> <A NAME="receiveBuf()"><!-- --></A><H3> receiveBuf</H3> <PRE> public <A HREF="../../../../com/ericsson/otp/erlang/OtpInputStream.html" title="class in com.ericsson.otp.erlang">OtpInputStream</A> <B>receiveBuf</B>() throws java.io.IOException, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangExit.html" title="class in com.ericsson.otp.erlang">OtpErlangExit</A>, <A HREF="../../../../com/ericsson/otp/erlang/OtpAuthException.html" title="class in com.ericsson.otp.erlang">OtpAuthException</A></PRE> <DL> <DD>Receive a raw (still encoded) message from a remote process. This message blocks until a valid message is received or an exception is raised. <p> If the remote node sends a message that cannot be decoded properly, the connection is closed and the method throws an exception. <P> <DD><DL> <DT><B>Returns:</B><DD>an object containing a raw (still encoded) Erlang term. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - if the connection is not active or a communication error occurs. <DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangExit.html" title="class in com.ericsson.otp.erlang">OtpErlangExit</A></CODE> - if an exit signal is received from a process on the peer node, or if the connection is lost for any reason. <DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpAuthException.html" title="class in com.ericsson.otp.erlang">OtpAuthException</A></CODE> - if the remote node sends a message containing an invalid cookie.</DL> </DD> </DL> <HR> <A NAME="receiveBuf(long)"><!-- --></A><H3> receiveBuf</H3> <PRE> public <A HREF="../../../../com/ericsson/otp/erlang/OtpInputStream.html" title="class in com.ericsson.otp.erlang">OtpInputStream</A> <B>receiveBuf</B>(long timeout) throws java.lang.InterruptedException, java.io.IOException, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangExit.html" title="class in com.ericsson.otp.erlang">OtpErlangExit</A>, <A HREF="../../../../com/ericsson/otp/erlang/OtpAuthException.html" title="class in com.ericsson.otp.erlang">OtpAuthException</A></PRE> <DL> <DD>Receive a raw (still encoded) message from a remote process. This message blocks at most for the specified time until a valid message is received or an exception is raised. <p> If the remote node sends a message that cannot be decoded properly, the connection is closed and the method throws an exception. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>timeout</CODE> - the time in milliseconds that this operation will block. Specify 0 to poll the queue. <DT><B>Returns:</B><DD>an object containing a raw (still encoded) Erlang term. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - if the connection is not active or a communication error occurs. <DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangExit.html" title="class in com.ericsson.otp.erlang">OtpErlangExit</A></CODE> - if an exit signal is received from a process on the peer node, or if the connection is lost for any reason. <DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpAuthException.html" title="class in com.ericsson.otp.erlang">OtpAuthException</A></CODE> - if the remote node sends a message containing an invalid cookie. <DD><CODE>java.lang.InterruptedException</CODE> - if no message if the method times out before a message becomes available.</DL> </DD> </DL> <HR> <A NAME="receiveMsg()"><!-- --></A><H3> receiveMsg</H3> <PRE> public <A HREF="../../../../com/ericsson/otp/erlang/OtpMsg.html" title="class in com.ericsson.otp.erlang">OtpMsg</A> <B>receiveMsg</B>() throws java.io.IOException, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangExit.html" title="class in com.ericsson.otp.erlang">OtpErlangExit</A>, <A HREF="../../../../com/ericsson/otp/erlang/OtpAuthException.html" title="class in com.ericsson.otp.erlang">OtpAuthException</A></PRE> <DL> <DD>Receive a messge complete with sender and recipient information. <P> <DD><DL> <DT><B>Returns:</B><DD>an <A HREF="../../../../com/ericsson/otp/erlang/OtpMsg.html" title="class in com.ericsson.otp.erlang"><CODE>OtpMsg</CODE></A> containing the header information about the sender and recipient, as well as the actual message contents. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - if the connection is not active or a communication error occurs. <DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangExit.html" title="class in com.ericsson.otp.erlang">OtpErlangExit</A></CODE> - if an exit signal is received from a process on the peer node, or if the connection is lost for any reason. <DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpAuthException.html" title="class in com.ericsson.otp.erlang">OtpAuthException</A></CODE> - if the remote node sends a message containing an invalid cookie.</DL> </DD> </DL> <HR> <A NAME="receiveMsg(long)"><!-- --></A><H3> receiveMsg</H3> <PRE> public <A HREF="../../../../com/ericsson/otp/erlang/OtpMsg.html" title="class in com.ericsson.otp.erlang">OtpMsg</A> <B>receiveMsg</B>(long timeout) throws java.lang.InterruptedException, java.io.IOException, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangExit.html" title="class in com.ericsson.otp.erlang">OtpErlangExit</A>, <A HREF="../../../../com/ericsson/otp/erlang/OtpAuthException.html" title="class in com.ericsson.otp.erlang">OtpAuthException</A></PRE> <DL> <DD>Receive a messge complete with sender and recipient information. This method blocks at most for the specified time. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>timeout</CODE> - the time in milliseconds that this operation will block. Specify 0 to poll the queue. <DT><B>Returns:</B><DD>an <A HREF="../../../../com/ericsson/otp/erlang/OtpMsg.html" title="class in com.ericsson.otp.erlang"><CODE>OtpMsg</CODE></A> containing the header information about the sender and recipient, as well as the actual message contents. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - if the connection is not active or a communication error occurs. <DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangExit.html" title="class in com.ericsson.otp.erlang">OtpErlangExit</A></CODE> - if an exit signal is received from a process on the peer node, or if the connection is lost for any reason. <DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpAuthException.html" title="class in com.ericsson.otp.erlang">OtpAuthException</A></CODE> - if the remote node sends a message containing an invalid cookie. <DD><CODE>java.lang.InterruptedException</CODE> - if no message if the method times out before a message becomes available.</DL> </DD> </DL> <HR> <A NAME="send(com.ericsson.otp.erlang.OtpErlangPid, com.ericsson.otp.erlang.OtpErlangObject)"><!-- --></A><H3> send</H3> <PRE> public void <B>send</B>(<A HREF="../../../../com/ericsson/otp/erlang/OtpErlangPid.html" title="class in com.ericsson.otp.erlang">OtpErlangPid</A> dest, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A> msg) throws java.io.IOException</PRE> <DL> <DD>Send a message to a process on a remote node. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>dest</CODE> - the Erlang PID of the remote process.<DD><CODE>msg</CODE> - the message to send. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - if the connection is not active or a communication error occurs.</DL> </DD> </DL> <HR> <A NAME="send(java.lang.String, com.ericsson.otp.erlang.OtpErlangObject)"><!-- --></A><H3> send</H3> <PRE> public void <B>send</B>(java.lang.String dest, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A> msg) throws java.io.IOException</PRE> <DL> <DD>Send a message to a named process on a remote node. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>dest</CODE> - the name of the remote process.<DD><CODE>msg</CODE> - the message to send. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - if the connection is not active or a communication error occurs.</DL> </DD> </DL> <HR> <A NAME="sendBuf(java.lang.String, com.ericsson.otp.erlang.OtpOutputStream)"><!-- --></A><H3> sendBuf</H3> <PRE> public void <B>sendBuf</B>(java.lang.String dest, <A HREF="../../../../com/ericsson/otp/erlang/OtpOutputStream.html" title="class in com.ericsson.otp.erlang">OtpOutputStream</A> payload) throws java.io.IOException</PRE> <DL> <DD>Send a pre-encoded message to a named process on a remote node. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>dest</CODE> - the name of the remote process.<DD><CODE>payload</CODE> - the encoded message to send. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - if the connection is not active or a communication error occurs.</DL> </DD> </DL> <HR> <A NAME="sendBuf(com.ericsson.otp.erlang.OtpErlangPid, com.ericsson.otp.erlang.OtpOutputStream)"><!-- --></A><H3> sendBuf</H3> <PRE> public void <B>sendBuf</B>(<A HREF="../../../../com/ericsson/otp/erlang/OtpErlangPid.html" title="class in com.ericsson.otp.erlang">OtpErlangPid</A> dest, <A HREF="../../../../com/ericsson/otp/erlang/OtpOutputStream.html" title="class in com.ericsson.otp.erlang">OtpOutputStream</A> payload) throws java.io.IOException</PRE> <DL> <DD>Send a pre-encoded message to a process on a remote node. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>dest</CODE> - the Erlang PID of the remote process.<DD><CODE>msg</CODE> - the encoded message to send. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - if the connection is not active or a communication error occurs.</DL> </DD> </DL> <HR> <A NAME="sendRPC(java.lang.String, java.lang.String, com.ericsson.otp.erlang.OtpErlangObject[])"><!-- --></A><H3> sendRPC</H3> <PRE> public void <B>sendRPC</B>(java.lang.String mod, java.lang.String fun, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A>[] args) throws java.io.IOException</PRE> <DL> <DD>Send an RPC request to the remote Erlang node. This convenience function creates the following message and sends it to 'rex' on the remote node: <pre> { self, { call, Mod, Fun, Args, user } } </pre> <p> Note that this method has unpredicatble results if the remote node is not an Erlang node. </p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>mod</CODE> - the name of the Erlang module containing the function to be called.<DD><CODE>fun</CODE> - the name of the function to call.<DD><CODE>args</CODE> - an array of Erlang terms, to be used as arguments to the function. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - if the connection is not active or a communication error occurs.</DL> </DD> </DL> <HR> <A NAME="sendRPC(java.lang.String, java.lang.String, com.ericsson.otp.erlang.OtpErlangList)"><!-- --></A><H3> sendRPC</H3> <PRE> public void <B>sendRPC</B>(java.lang.String mod, java.lang.String fun, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangList.html" title="class in com.ericsson.otp.erlang">OtpErlangList</A> args) throws java.io.IOException</PRE> <DL> <DD>Send an RPC request to the remote Erlang node. This convenience function creates the following message and sends it to 'rex' on the remote node: <pre> { self, { call, Mod, Fun, Args, user } } </pre> <p> Note that this method has unpredicatble results if the remote node is not an Erlang node. </p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>mod</CODE> - the name of the Erlang module containing the function to be called.<DD><CODE>fun</CODE> - the name of the function to call.<DD><CODE>args</CODE> - a list of Erlang terms, to be used as arguments to the function. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - if the connection is not active or a communication error occurs.</DL> </DD> </DL> <HR> <A NAME="receiveRPC()"><!-- --></A><H3> receiveRPC</H3> <PRE> public <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A> <B>receiveRPC</B>() throws java.io.IOException, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangExit.html" title="class in com.ericsson.otp.erlang">OtpErlangExit</A>, <A HREF="../../../../com/ericsson/otp/erlang/OtpAuthException.html" title="class in com.ericsson.otp.erlang">OtpAuthException</A></PRE> <DL> <DD>Receive an RPC reply from the remote Erlang node. This convenience function receives a message from the remote node, and expects it to have the following format: <pre> { rex, Term } </pre> <P> <DD><DL> <DT><B>Returns:</B><DD>the second element of the tuple if the received message is a two-tuple, otherwise null. No further error checking is performed. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - if the connection is not active or a communication error occurs. <DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangExit.html" title="class in com.ericsson.otp.erlang">OtpErlangExit</A></CODE> - if an exit signal is received from a process on the peer node. <DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpAuthException.html" title="class in com.ericsson.otp.erlang">OtpAuthException</A></CODE> - if the remote node sends a message containing an invalid cookie.</DL> </DD> </DL> <HR> <A NAME="link(com.ericsson.otp.erlang.OtpErlangPid)"><!-- --></A><H3> link</H3> <PRE> public void <B>link</B>(<A HREF="../../../../com/ericsson/otp/erlang/OtpErlangPid.html" title="class in com.ericsson.otp.erlang">OtpErlangPid</A> dest) throws java.io.IOException</PRE> <DL> <DD>Create a link between the local node and the specified process on the remote node. If the link is still active when the remote process terminates, an exit signal will be sent to this connection. Use <A HREF="../../../../com/ericsson/otp/erlang/OtpConnection.html#unlink(com.ericsson.otp.erlang.OtpErlangPid)"><CODE>unlink()</CODE></A> to remove the link. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>dest</CODE> - the Erlang PID of the remote process. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - if the connection is not active or a communication error occurs.</DL> </DD> </DL> <HR> <A NAME="unlink(com.ericsson.otp.erlang.OtpErlangPid)"><!-- --></A><H3> unlink</H3> <PRE> public void <B>unlink</B>(<A HREF="../../../../com/ericsson/otp/erlang/OtpErlangPid.html" title="class in com.ericsson.otp.erlang">OtpErlangPid</A> dest) throws java.io.IOException</PRE> <DL> <DD>Remove a link between the local node and the specified process on the remote node. This method deactivates links created with <A HREF="../../../../com/ericsson/otp/erlang/OtpConnection.html#link(com.ericsson.otp.erlang.OtpErlangPid)"><CODE>link()</CODE></A>. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>dest</CODE> - the Erlang PID of the remote process. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - if the connection is not active or a communication error occurs.</DL> </DD> </DL> <HR> <A NAME="exit(com.ericsson.otp.erlang.OtpErlangPid, com.ericsson.otp.erlang.OtpErlangObject)"><!-- --></A><H3> exit</H3> <PRE> public void <B>exit</B>(<A HREF="../../../../com/ericsson/otp/erlang/OtpErlangPid.html" title="class in com.ericsson.otp.erlang">OtpErlangPid</A> dest, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A> reason) throws java.io.IOException</PRE> <DL> <DD>Send an exit signal to a remote process. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>dest</CODE> - the Erlang PID of the remote process.<DD><CODE>reason</CODE> - an Erlang term describing the exit reason. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - if the connection is not active or a communication error occurs.</DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../com/ericsson/otp/erlang/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <A HREF="#main"><FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/ericsson/otp/erlang/OtpAuthException.html" title="class in com.ericsson.otp.erlang"><B>PREV CLASS</B></A> <A HREF="../../../../com/ericsson/otp/erlang/OtpCookedConnection.html" title="class in com.ericsson.otp.erlang"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/ericsson/otp/erlang/OtpConnection.html" target="_top"><B>FRAMES</B></A> <A HREF="OtpConnection.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#nested_classes_inherited_from_class_java.lang.Thread">NESTED</A> | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> </BODY> </HTML>