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

📄 socketimpl.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
                        throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Accepts a connection.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the accepted connection.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O error occurs when accepting the               connection.</DL></DD></DL><HR><A NAME="getInputStream()"><!-- --></A><H3>getInputStream</H3><PRE>protected abstract <A HREF="../../java/io/InputStream.html">InputStream</A> <B>getInputStream</B>()                                       throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Returns an input stream for this socket.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a stream for reading from this socket.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O error occurs when creating the               input stream.</DL></DD></DL><HR><A NAME="getOutputStream()"><!-- --></A><H3>getOutputStream</H3><PRE>protected abstract <A HREF="../../java/io/OutputStream.html">OutputStream</A> <B>getOutputStream</B>()                                         throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Returns an output stream for this socket.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an output stream for writing to this socket.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O error occurs when creating the               output stream.</DL></DD></DL><HR><A NAME="available()"><!-- --></A><H3>available</H3><PRE>protected abstract int <B>available</B>()                          throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Returns the number of bytes that can be read from this socket without blocking.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of bytes that can be read from this socket             without blocking.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O error occurs when determining the               number of bytes available.</DL></DD></DL><HR><A NAME="close()"><!-- --></A><H3>close</H3><PRE>protected abstract void <B>close</B>()                       throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Closes this socket.<DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O error occurs when closing this socket.</DL></DD></DL><HR><A NAME="shutdownInput()"><!-- --></A><H3>shutdownInput</H3><PRE>protected void <B>shutdownInput</B>()                      throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Places the input stream for this socket at "end of stream". Any data sent to this socket is acknowledged and then silently discarded. If you read from a socket input stream after invoking  shutdownInput() on the socket, the stream will return EOF.<DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O error occurs when shutting down this socket.<DT><B>See Also: </B><DD><A HREF="../../java/net/Socket.html#shutdownOutput()"><CODE>Socket.shutdownOutput()</CODE></A>, <A HREF="../../java/net/Socket.html#close()"><CODE>Socket.close()</CODE></A>, <A HREF="../../java/net/Socket.html#setSoLinger(boolean, int)"><CODE>Socket.setSoLinger(boolean, int)</CODE></A></DL></DD></DL><HR><A NAME="shutdownOutput()"><!-- --></A><H3>shutdownOutput</H3><PRE>protected void <B>shutdownOutput</B>()                       throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Disables the output stream for this socket. For a TCP socket, any previously written data will be sent followed by TCP's normal connection termination sequence. If you write to a socket output stream after invoking  shutdownOutput() on the socket, the stream will throw  an IOException.<DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O error occurs when shutting down this socket.<DT><B>See Also: </B><DD><A HREF="../../java/net/Socket.html#shutdownInput()"><CODE>Socket.shutdownInput()</CODE></A>, <A HREF="../../java/net/Socket.html#close()"><CODE>Socket.close()</CODE></A>, <A HREF="../../java/net/Socket.html#setSoLinger(boolean, int)"><CODE>Socket.setSoLinger(boolean, int)</CODE></A></DL></DD></DL><HR><A NAME="getFileDescriptor()"><!-- --></A><H3>getFileDescriptor</H3><PRE>protected <A HREF="../../java/io/FileDescriptor.html">FileDescriptor</A> <B>getFileDescriptor</B>()</PRE><DL><DD>Returns the value of this socket's <code>fd</code> field.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the value of this socket's <code>fd</code> field.<DT><B>See Also: </B><DD><A HREF="../../java/net/SocketImpl.html#fd"><CODE>fd</CODE></A></DL></DD></DL><HR><A NAME="getInetAddress()"><!-- --></A><H3>getInetAddress</H3><PRE>protected <A HREF="../../java/net/InetAddress.html">InetAddress</A> <B>getInetAddress</B>()</PRE><DL><DD>Returns the value of this socket's <code>address</code> field.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the value of this socket's <code>address</code> field.<DT><B>See Also: </B><DD><A HREF="../../java/net/SocketImpl.html#address"><CODE>address</CODE></A></DL></DD></DL><HR><A NAME="getPort()"><!-- --></A><H3>getPort</H3><PRE>protected int <B>getPort</B>()</PRE><DL><DD>Returns the value of this socket's <code>port</code> field.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the value of this socket's <code>port</code> field.<DT><B>See Also: </B><DD><A HREF="../../java/net/SocketImpl.html#port"><CODE>port</CODE></A></DL></DD></DL><HR><A NAME="getLocalPort()"><!-- --></A><H3>getLocalPort</H3><PRE>protected int <B>getLocalPort</B>()</PRE><DL><DD>Returns the value of this socket's <code>localport</code> field.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the value of this socket's <code>localport</code> field.<DT><B>See Also: </B><DD><A HREF="../../java/net/SocketImpl.html#localport"><CODE>localport</CODE></A></DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>toString</B>()</PRE><DL><DD>Returns the address and port of this socket as a <code>String</code>.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/lang/Object.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a string representation of this socket.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <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/SocketImpl.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-files/index-1.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><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../java/net/Socket.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../java/net/SocketPermission.html"><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="SocketImpl.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&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><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

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