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

📄 jxtasocket.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 5 页
字号:
  If needed, ris will be close itself when read first return -1.<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="closeCommon()"><!-- --></A><H3>closeCommon</H3><PRE>protected void <B>closeCommon</B>()                    throws java.io.IOException</PRE><DL><DD>In stream mode, closes everything but the input stream. closeFromRemote() leaves it open until EOF is reached. That is, until all messages in the input queue have been read. At which point, ris will close() itself.<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="setInputPipe(net.jxta.pipe.InputPipe)"><!-- --></A><H3>setInputPipe</H3><PRE>protected void <B>setInputPipe</B>(<A HREF="../../../net/jxta/pipe/InputPipe.html" title="interface in net.jxta.pipe">InputPipe</A>&nbsp;in)</PRE><DL><DD>Sets the inputPipe attribute of the JxtaSocket object<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>in</CODE> - The new inputPipe value</DL></DD></DL><HR><A NAME="pipeMsgEvent(net.jxta.pipe.PipeMsgEvent)"><!-- --></A><H3>pipeMsgEvent</H3><PRE>public void <B>pipeMsgEvent</B>(<A HREF="../../../net/jxta/pipe/PipeMsgEvent.html" title="class in net.jxta.pipe">PipeMsgEvent</A>&nbsp;event)</PRE><DL><DD>we got a message<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../net/jxta/pipe/PipeMsgListener.html#pipeMsgEvent(net.jxta.pipe.PipeMsgEvent)">pipeMsgEvent</A></CODE> in interface <CODE><A HREF="../../../net/jxta/pipe/PipeMsgListener.html" title="interface in net.jxta.pipe">PipeMsgListener</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>event</CODE> - the message event</DL></DD></DL><HR><A NAME="outputPipeEvent(net.jxta.pipe.OutputPipeEvent)"><!-- --></A><H3>outputPipeEvent</H3><PRE>public void <B>outputPipeEvent</B>(<A HREF="../../../net/jxta/pipe/OutputPipeEvent.html" title="class in net.jxta.pipe">OutputPipeEvent</A>&nbsp;event)</PRE><DL><DD>the output pipe event<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../net/jxta/pipe/OutputPipeListener.html#outputPipeEvent(net.jxta.pipe.OutputPipeEvent)">outputPipeEvent</A></CODE> in interface <CODE><A HREF="../../../net/jxta/pipe/OutputPipeListener.html" title="interface in net.jxta.pipe">OutputPipeListener</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>event</CODE> - the event</DL></DD></DL><HR><A NAME="lightweightOutputPipe(net.jxta.peergroup.PeerGroup, net.jxta.protocol.PipeAdvertisement, net.jxta.protocol.PeerAdvertisement)"><!-- --></A><H3>lightweightOutputPipe</H3><PRE>protected static <A HREF="../../../net/jxta/endpoint/Messenger.html" title="interface in net.jxta.endpoint">Messenger</A> <B>lightweightOutputPipe</B>(<A HREF="../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A>&nbsp;group,                                                 <A HREF="../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A>&nbsp;pipeAdv,                                                 <A HREF="../../../net/jxta/protocol/PeerAdvertisement.html" title="class in net.jxta.protocol">PeerAdvertisement</A>&nbsp;peer)</PRE><DL><DD>A lightweight output pipe constructor, note the return type  Since all the info needed is available, there's no need for to use the pipe service  to resolve the pipe we have all we need to construct a messenger.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>group</CODE> - group context<DD><CODE>pipeAdv</CODE> - Remote Pipe Advertisement<DD><CODE>peer</CODE> - Remote Peer Advertisment<DT><B>Returns:</B><DD>Messenger</DL></DD></DL><HR><A NAME="checkCred(net.jxta.document.StructuredDocument)"><!-- --></A><H3>checkCred</H3><PRE>protected boolean <B>checkCred</B>(<A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A>&nbsp;cred)</PRE><DL><DD>Check the validity of a credential it is not implemented due to lack of meaningful  default membership service. it will be implemented as soon as one is available.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getSoTimeout()"><!-- --></A><H3>getSoTimeout</H3><PRE>public int <B>getSoTimeout</B>()                 throws java.io.IOException</PRE><DL><DD>Gets the Timeout attribute of the JxtaServerSocket object<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The soTimeout value<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an I/O error occurs</DL></DD></DL><HR><A NAME="setSoTimeout(int)"><!-- --></A><H3>setSoTimeout</H3><PRE>public void <B>setSoTimeout</B>(int&nbsp;timeout)                  throws java.net.SocketException</PRE><DL><DD>Sets the Timeout attribute of the JxtaServerSocket  a timeout of 0 blocks forever, by default this Socket's  timeout is set to 0<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>timeout</CODE> - The new soTimeout value<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an I/O error occurs<DD><CODE>java.net.SocketException</CODE></DL></DD></DL><HR><A NAME="getWindowSize()"><!-- --></A><H3>getWindowSize</H3><PRE>public int <B>getWindowSize</B>()</PRE><DL><DD>When in reliable mode, gets the Reliable library window size<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The windowSize value<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an I/O error occurs</DL></DD></DL><HR><A NAME="setWindowSize(int)"><!-- --></A><H3>setWindowSize</H3><PRE>public void <B>setWindowSize</B>(int&nbsp;windowSize)                   throws java.net.SocketException</PRE><DL><DD>When in reliable mode, sets the Reliable library window size<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>windowSize</CODE> - The new window size value<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an I/O error occurs<DD><CODE>java.net.SocketException</CODE></DL></DD></DL><HR><A NAME="isClosed()"><!-- --></A><H3>isClosed</H3><PRE>public boolean <B>isClosed</B>()</PRE><DL><DD>Returns the closed state of the JxtaServerSocket.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the socket has been closed</DL></DD></DL><HR><A NAME="write(byte[], int, int)"><!-- --></A><H3>write</H3><PRE>protected void <B>write</B>(byte[]&nbsp;buf,                     int&nbsp;offset,                     int&nbsp;length)              throws java.io.IOException</PRE><DL><DD>Performs on behalf of JxtaSocketOutputStream.<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE><DT><B>See Also:</B><DD><CODE>OutputStream.write(int)</CODE></DL></DD></DL><HR><A NAME="read()"><!-- --></A><H3>read</H3><PRE>protected int <B>read</B>()            throws java.io.IOException</PRE><DL><DD>Performs on behalf of JxtaSocketInputStream.<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE><DT><B>See Also:</B><DD><CODE>InputStream.read()</CODE></DL></DD></DL><HR><A NAME="read(byte[], int, int)"><!-- --></A><H3>read</H3><PRE>protected int <B>read</B>(byte[]&nbsp;b,                   int&nbsp;off,                   int&nbsp;len)            throws java.io.IOException</PRE><DL><DD>Performs on behalf of JxtaSocketInputStream.<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE><DT><B>See Also:</B><DD><CODE>InputStream.read()</CODE></DL></DD></DL><HR><A NAME="available()"><!-- --></A><H3>available</H3><PRE>protected int <B>available</B>()                 throws java.io.IOException</PRE><DL><DD>Performs on behalf of JxtaSocketInputStream.<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE><DT><B>See Also:</B><DD><A HREF="../../../net/jxta/socket/JxtaSocketInputStream.html#available()"><CODE>JxtaSocketInputStream.available()</CODE></A></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/JxtaSocket.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;<A HREF="../../../net/jxta/socket/JxtaServerSocket.html" title="class in net.jxta.socket"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../net/jxta/socket/JxtaSocketInputStream.html" title="class in net.jxta.socket"><B>

⌨️ 快捷键说明

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