📄 tcptransport.html
字号:
registered. If it is unregistered then null will be returned.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/endpoint/MessageTransport.html#getEndpointService()">getEndpointService</A></CODE> in interface <CODE><A HREF="../../../../../net/jxta/endpoint/MessageTransport.html" title="interface in net.jxta.endpoint">MessageTransport</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the EndpointService with which this MessageTransport is registered.</DL></DD></DL><HR><A NAME="transportControl(java.lang.Object, java.lang.Object)"><!-- --></A><H3>transportControl</H3><PRE>public java.lang.Object <B>transportControl</B>(java.lang.Object operation, java.lang.Object Value)</PRE><DL><DD>Pass a transport control object to a message transport<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/endpoint/MessageTransport.html#transportControl(java.lang.Object, java.lang.Object)">transportControl</A></CODE> in interface <CODE><A HREF="../../../../../net/jxta/endpoint/MessageTransport.html" title="interface in net.jxta.endpoint">MessageTransport</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>returned object</DL></DD></DL><HR><A NAME="getPublicAddresses()"><!-- --></A><H3>getPublicAddresses</H3><PRE>public java.util.Iterator <B>getPublicAddresses</B>()</PRE><DL><DD>Returns an Iterator of all of the <A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint"><CODE>EndpointAddresses</CODE></A> by which this MessageReceiver is reachable. The list is in order of "preference" with the most "prefered" EndpointAddress being at the begining of the list.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/endpoint/MessageReceiver.html#getPublicAddresses()">getPublicAddresses</A></CODE> in interface <CODE><A HREF="../../../../../net/jxta/endpoint/MessageReceiver.html" title="interface in net.jxta.endpoint">MessageReceiver</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an Iterator of EndpointAddresses.</DL></DD></DL><HR><A NAME="isConnectionOriented()"><!-- --></A><H3>isConnectionOriented</H3><PRE>public boolean <B>isConnectionOriented</B>()</PRE><DL><DD>Returns true if the endpoint protocol can establish connection to the remote host (like TCP).<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/endpoint/MessageSender.html#isConnectionOriented()">isConnectionOriented</A></CODE> in interface <CODE><A HREF="../../../../../net/jxta/endpoint/MessageSender.html" title="interface in net.jxta.endpoint">MessageSender</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>boolean true if the protocol is connection oriented.</DL></DD></DL><HR><A NAME="allowsRouting()"><!-- --></A><H3>allowsRouting</H3><PRE>public boolean <B>allowsRouting</B>()</PRE><DL><DD>Returns true if the endpoint protocol can be used by the EndpointRouter. <p/>More specifically, this protocol will be used to route messages who's final destination is <b>not</b> one of the endpoint addresses available from getReachableEndpointAddresses.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/endpoint/MessageSender.html#allowsRouting()">allowsRouting</A></CODE> in interface <CODE><A HREF="../../../../../net/jxta/endpoint/MessageSender.html" title="interface in net.jxta.endpoint">MessageSender</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>boolean true if the protocol can be used by the EndpointRouter</DL></DD></DL><HR><A NAME="getMessenger(net.jxta.endpoint.EndpointAddress, java.lang.Object)"><!-- --></A><H3>getMessenger</H3><PRE>public <A HREF="../../../../../net/jxta/endpoint/Messenger.html" title="interface in net.jxta.endpoint">Messenger</A> <B>getMessenger</B>(<A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> dst, java.lang.Object hintIgnored)</PRE><DL><DD>Creates an <A HREF="../../../../../net/jxta/endpoint/EndpointMessenger.html" title="interface in net.jxta.endpoint"><CODE>EndpointMessenger</CODE></A> for sending messages to the specified destination <A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint"><CODE>EndpointAddress</CODE></A>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/endpoint/MessageSender.html#getMessenger(net.jxta.endpoint.EndpointAddress, java.lang.Object)">getMessenger</A></CODE> in interface <CODE><A HREF="../../../../../net/jxta/endpoint/MessageSender.html" title="interface in net.jxta.endpoint">MessageSender</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>dst</CODE> - EndpointAddress of the destination<DD><CODE>hintIgnored</CODE> - A hint for the transport to use when creating the messenger.<DT><B>Returns:</B><DD>a Messenger. null is returned if the EndpointAddress is not reachable.</DL></DD></DL><HR><A NAME="run()"><!-- --></A><H3>run</H3><PRE>public void <B>run</B>()</PRE><DL><DD>Handles incoming multicasts.<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="processMulticast(byte[], int)"><!-- --></A><H3>processMulticast</H3><PRE>public void <B>processMulticast</B>(byte[] buffer, int size)</PRE><DL><DD>Handle a byte buffer from a multi-cast. This assumes that processing of the buffer is lightweight. Formerly there used to be a delegation to worker threads. The way queuing works has changed though and it should be ok to do the receiver right on the server thread.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>buffer</CODE> - the buffer to process.</DL></DD></DL><HR><A NAME="propagate(net.jxta.endpoint.Message, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>propagate</H3><PRE>public void <B>propagate</B>(<A HREF="../../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A> message, java.lang.String pName, java.lang.String pParams, java.lang.String prunePeer) throws java.io.IOException</PRE><DL><DD>Propagates a TransportMessage on this EndpointProtocol <p/>Synchronizing to not allow concurrent IP multicast: this naturally bounds the usage of ip-multicast boolean be linear and not exponantial.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/endpoint/MessageSender.html#propagate(net.jxta.endpoint.Message, java.lang.String, java.lang.String, java.lang.String)">propagate</A></CODE> in interface <CODE><A HREF="../../../../../net/jxta/endpoint/MessageSender.html" title="interface in net.jxta.endpoint">MessageSender</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>message</CODE> - the TransportMessage to be propagated<DD><CODE>pName</CODE> - the name of a service<DD><CODE>pParams</CODE> - parameters for this message.<DD><CODE>prunePeer</CODE> - (ignored)<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - thrown if the message could not be sent for some reason.</DL></DD></DL><HR><A NAME="ping(net.jxta.endpoint.EndpointAddress)"><!-- --></A><H3>ping</H3><PRE>public boolean <B>ping</B>(<A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> addr)</PRE><DL><DD>Ping a remote host. This implementation tries to open a connection, and after tests the result. Note if there is already an open connection, no new connection is actually created.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/endpoint/MessageSender.html#ping(net.jxta.endpoint.EndpointAddress)">ping</A></CODE> in interface <CODE><A HREF="../../../../../net/jxta/endpoint/MessageSender.html" title="interface in net.jxta.endpoint">MessageSender</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>addr</CODE> - the endpoint addresss to ping<DT><B>Returns:</B><DD>true if the address is reachable, otherwise false.</DL></DD></DL><HR><A NAME="getRestrictionPort()"><!-- --></A><H3>getRestrictionPort</H3><PRE>int <B>getRestrictionPort</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getUnicastTransportBindingMeter(net.jxta.peer.PeerID, net.jxta.endpoint.EndpointAddress)"><!-- --></A><H3>getUnicastTransportBindingMeter</H3><PRE><A HREF="../../../../../net/jxta/impl/endpoint/transportMeter/TransportBindingMeter.html" title="class in net.jxta.impl.endpoint.transportMeter">TransportBindingMeter</A> <B>getUnicastTransportBindingMeter</B>(<A HREF="../../../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer">PeerID</A> peerID, <A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> destinationAddress)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getMulticastTransportBindingMeter(net.jxta.endpoint.EndpointAddress)"><!-- --></A><H3>getMulticastTransportBindingMeter</H3><PRE><A HREF="../../../../../net/jxta/impl/endpoint/transportMeter/TransportBindingMeter.html" title="class in net.jxta.impl.endpoint.transportMeter">TransportBindingMeter</A> <B>getMulticastTransportBindingMeter</B>(<A HREF="../../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> destinationAddress)</PRE><DL><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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TcpTransport.html"><FONT CLASS="NavBarFont1"><B>Use</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>JXTA J2SE</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../net/jxta/impl/endpoint/tcp/TcpMessenger.html" title="class in net.jxta.impl.endpoint.tcp"><B>PREV CLASS</B></A> <A HREF="../../../../../net/jxta/impl/endpoint/tcp/TcpTransport.Watcher.html" title="class in net.jxta.impl.endpoint.tcp"><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> <A HREF="TcpTransport.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_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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 + -