⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 relayclient.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 3 页
字号:
public void <B>propertyChange</B>(java.beans.PropertyChangeEvent&nbsp;evt)</PRE><DL><DD><P><DD><DL><DT><B>Specified by:</B><DD><CODE>propertyChange</CODE> in interface <CODE>java.beans.PropertyChangeListener</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="run()"><!-- --></A><H3>run</H3><PRE>public void <B>run</B>()</PRE><DL><DD>  <p/>Logic for the relay client :   <ul>    <li>Pick a relay server to try</li>    <li>try getting a messenger to relay server, if can not get messenger, start over</li>    <li>use the messenger to send a connect message</li>    <li>wait for a response, if there is no response or a disconnect response, start over</li>    <li>while still connected :      <ul>        <li>renew the lease as needed and keep the messenger connected</li>      </ul></li>   </ul><P><DD><DL><DT><B>Specified by:</B><DD><CODE>run</CODE> in interface <CODE>java.lang.Runnable</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="isRelayConnectDone()"><!-- --></A><H3>isRelayConnectDone</H3><PRE>protected boolean <B>isRelayConnectDone</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="connectToRelay(net.jxta.impl.endpoint.relay.RelayClient.RelayServerConnection)"><!-- --></A><H3>connectToRelay</H3><PRE><A HREF="../../../../../net/jxta/protocol/RdvAdvertisement.html" title="class in net.jxta.protocol">RdvAdvertisement</A> <B>connectToRelay</B>(net.jxta.impl.endpoint.relay.RelayClient.RelayServerConnection&nbsp;server)</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>server</CODE> - The relay server to connect to<DT><B>Returns:</B><DD>The advertisement of an alternate relay server to try.</DL></DD></DL><HR><A NAME="maintainRelayConnection(net.jxta.impl.endpoint.relay.RelayClient.RelayServerConnection)"><!-- --></A><H3>maintainRelayConnection</H3><PRE>protected <A HREF="../../../../../net/jxta/protocol/RdvAdvertisement.html" title="class in net.jxta.protocol">RdvAdvertisement</A> <B>maintainRelayConnection</B>(net.jxta.impl.endpoint.relay.RelayClient.RelayServerConnection&nbsp;server)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="handleResponse(net.jxta.endpoint.Message, net.jxta.endpoint.EndpointAddress)"><!-- --></A><H3>handleResponse</H3><PRE>protected void <B>handleResponse</B>(<A HREF="../../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A>&nbsp;message,                              <A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A>&nbsp;dstAddr)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="addActiveRelayListener(java.lang.Object)"><!-- --></A><H3>addActiveRelayListener</H3><PRE>public boolean <B>addActiveRelayListener</B>(java.lang.Object&nbsp;service)</PRE><DL><DD>Register an active Relay to the endpoint. This is done so the Route Advertisement of the PeerAdvertisement is updated<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="removeActiveRelayListener(java.lang.Object)"><!-- --></A><H3>removeActiveRelayListener</H3><PRE>public boolean <B>removeActiveRelayListener</B>(java.lang.Object&nbsp;service)</PRE><DL><DD>Unregister an active Relay to the endpoint. This is done so the Route Advertisement of the PeerAdvertisement is updated<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="addActiveRelay(net.jxta.endpoint.EndpointAddress, net.jxta.protocol.RouteAdvertisement)"><!-- --></A><H3>addActiveRelay</H3><PRE>public boolean <B>addActiveRelay</B>(<A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A>&nbsp;address,                              <A HREF="../../../../../net/jxta/protocol/RouteAdvertisement.html" title="class in net.jxta.protocol">RouteAdvertisement</A>&nbsp;relayRoute)</PRE><DL><DD>Notify of a new relay connection<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="removeActiveRelay(net.jxta.endpoint.EndpointAddress, net.jxta.protocol.RouteAdvertisement)"><!-- --></A><H3>removeActiveRelay</H3><PRE>public boolean <B>removeActiveRelay</B>(<A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A>&nbsp;address,                                 <A HREF="../../../../../net/jxta/protocol/RouteAdvertisement.html" title="class in net.jxta.protocol">RouteAdvertisement</A>&nbsp;relayRoute)</PRE><DL><DD>Notify of a relay connection removal<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getActiveRelays(net.jxta.peergroup.PeerGroup)"><!-- --></A><H3>getActiveRelays</H3><PRE>public java.util.Vector <B>getActiveRelays</B>(<A HREF="../../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A>&nbsp;pg)</PRE><DL><DD>return the list of connected relays<P><DD><DL></DL></DD><DD><DL></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=3 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="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/RelayClient.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>JXTA J2SE</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;<A HREF="../../../../../net/jxta/impl/endpoint/relay/RelayServer.html" title="class in net.jxta.impl.endpoint.relay"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="RelayClient.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -