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

📄 tcpadv.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/TCPAdv.html#isServerEnabled()">isServerEnabled</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/TCPAdv.html#setClientEnabled(boolean)">setClientEnabled</A></B>(boolean&nbsp;enabled)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/TCPAdv.html#setConfigMode(java.lang.String)">setConfigMode</A></B>(java.lang.String&nbsp;mode)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set the config mode. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/TCPAdv.html#setInterfaceAddress(java.lang.String)">setInterfaceAddress</A></B>(java.lang.String&nbsp;ia)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set the ip address of the interface to which this tcp transport binds.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/TCPAdv.html#setMulticastAddr(java.lang.String)">setMulticastAddr</A></B>(java.lang.String&nbsp;multicastaddr)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set the multicastaddr</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/TCPAdv.html#setMulticastPort(int)">setMulticastPort</A></B>(int&nbsp;multicastport)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set the multicastport</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/TCPAdv.html#setMulticastSize(int)">setMulticastSize</A></B>(int&nbsp;multicastsize)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set the multicastsize</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/TCPAdv.html#setMulticastState(boolean)">setMulticastState</A></B>(boolean&nbsp;multicastState)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set the multicast off</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/TCPAdv.html#setPort(int)">setPort</A></B>(int&nbsp;port)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sets the port</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/TCPAdv.html#setPublicAddressOnly(boolean)">setPublicAddressOnly</A></B>(boolean&nbsp;only)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/TCPAdv.html#setServer(java.lang.String)">setServer</A></B>(java.lang.String&nbsp;a)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set the public address. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/TCPAdv.html#setServerEnabled(boolean)">setServerEnabled</A></B>(boolean&nbsp;enabled)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_net.jxta.protocol.TransportAdvertisement"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class net.jxta.protocol.<A HREF="../../../../net/jxta/protocol/TransportAdvertisement.html" title="class in net.jxta.protocol">TransportAdvertisement</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../net/jxta/protocol/TransportAdvertisement.html#getBaseAdvType()">getBaseAdvType</A>, <A HREF="../../../../net/jxta/protocol/TransportAdvertisement.html#getID()">getID</A>, <A HREF="../../../../net/jxta/protocol/TransportAdvertisement.html#getProtocol()">getProtocol</A>, <A HREF="../../../../net/jxta/protocol/TransportAdvertisement.html#setProtocol(java.lang.String)">setProtocol</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_net.jxta.document.Advertisement"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class net.jxta.document.<A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../net/jxta/document/Advertisement.html#clone()">clone</A>, <A HREF="../../../../net/jxta/document/Advertisement.html#toString()">toString</A></CODE></TD></TR></TABLE>&nbsp;<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"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getAdvertisementType()"><!-- --></A><H3>getAdvertisementType</H3><PRE>public static java.lang.String <B>getAdvertisementType</B>()</PRE><DL><DD>{@inheritDoc}<P><DD><DL></DL></DD></DL><HR><A NAME="getAdvType()"><!-- --></A><H3>getAdvType</H3><PRE>public java.lang.String <B>getAdvType</B>()</PRE><DL><DD>Returns the identifying type of this Advertisement. Unlike  <A HREF="../../../../net/jxta/document/Advertisement.html#getAdvertisementType()"><CODE>Advertisement.getAdvertisementType()</CODE></A> this method will return the correct  runtime type of an Advertisement object.  <p/>This implementation is provided so as to NOT break the code of  existing advertisements. In most cases you should provide your own  implementation for efficeiny reasons.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../net/jxta/document/Advertisement.html#getAdvType()">getAdvType</A></CODE> in class <CODE><A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the identifying type of this Advertisement</DL></DD></DL><HR><A NAME="getPort()"><!-- --></A><H3>getPort</H3><PRE>public int <B>getPort</B>()</PRE><DL><DD>returns the port<P><DD><DL><DT><B>Returns:</B><DD>string port</DL></DD></DL><HR><A NAME="setPort(int)"><!-- --></A><H3>setPort</H3><PRE>public void <B>setPort</B>(int&nbsp;port)</PRE><DL><DD>sets the port<P><DD><DL><DT><B>Parameters:</B><DD><CODE>port</CODE> - port</DL></DD></DL><HR><A NAME="getMulticastState()"><!-- --></A><H3>getMulticastState</H3><PRE>public boolean <B>getMulticastState</B>()</PRE><DL><DD>determine whether multicast if off or not<P><DD><DL><DT><B>Returns:</B><DD>boolean  current multicast state</DL></DD></DL><HR><A NAME="setMulticastState(boolean)"><!-- --></A><H3>setMulticastState</H3><PRE>public void <B>setMulticastState</B>(boolean&nbsp;multicastState)</PRE><DL><DD>set the multicast off<P><DD><DL><DT><B>Parameters:</B><DD><CODE>multicastState</CODE> - set multicastoff</DL></DD></DL><HR><A NAME="getMulticastAddr()"><!-- --></A><H3>getMulticastAddr</H3><PRE>public java.lang.String <B>getMulticastAddr</B>()</PRE><DL><DD>returns the multicastaddr<P><DD><DL><DT><B>Returns:</B><DD>string multicastaddr</DL></DD></DL><HR><A NAME="setMulticastAddr(java.lang.String)"><!-- --></A><H3>setMulticastAddr</H3><PRE>public void <B>setMulticastAddr</B>(java.lang.String&nbsp;multicastaddr)</PRE><DL><DD>set the multicastaddr<P><DD><DL><DT><B>Parameters:</B><DD><CODE>multicastaddr</CODE> - set multicastaddr</DL></DD></DL><HR><A NAME="getMulticastPort()"><!-- --></A><H3>getMulticastPort</H3><PRE>public int <B>getMulticastPort</B>()</PRE><DL><DD>returns the multicastport<P><DD><DL><DT><B>Returns:</B><DD>string multicastport</DL></DD></DL><HR><A NAME="setMulticastPort(int)"><!-- --></A><H3>setMulticastPort</H3><PRE>public void <B>setMulticastPort</B>(int&nbsp;multicastport)</PRE><DL><DD>set the multicastport<P><DD><DL><DT><B>Parameters:</B><DD><CODE>multicastport</CODE> - set multicastport</DL></DD></DL><HR><A NAME="getMulticastSize()"><!-- --></A><H3>getMulticastSize</H3><PRE>public int <B>getMulticastSize</B>()</PRE><DL><DD>returns the multicastsize<P><DD><DL><DT><B>Returns:</B><DD>integer containting the multicast size</DL></DD></DL><HR><A NAME="setMulticastSize(int)"><!-- --></A><H3>setMulticastSize</H3><PRE>public void <B>setMulticastSize</B>(int&nbsp;multicastsize)</PRE><DL><DD>set the multicastsize<P><DD><DL>

⌨️ 快捷键说明

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