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

📄 socketimpl.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<CODE>protected abstract &nbsp;<A HREF="../../java/io/InputStream.html">InputStream</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/net/SocketImpl.html#getInputStream()">getInputStream</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an input stream for this socket.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/net/SocketImpl.html#getLocalPort()">getLocalPort</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value of this socket's <code>localport</code> field.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected abstract &nbsp;<A HREF="../../java/io/OutputStream.html">OutputStream</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/net/SocketImpl.html#getOutputStream()">getOutputStream</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an output stream for this socket.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/net/SocketImpl.html#getPort()">getPort</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value of this socket's <code>port</code> field.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected abstract &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/net/SocketImpl.html#listen(int)">listen</A></B>(int&nbsp;backlog)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the maximum queue length for incoming connection indications  (a request to connect) to the <code>count</code> argument.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/net/SocketImpl.html#shutdownInput()">shutdownInput</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Places the input stream for this socket at "end of stream".</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/net/SocketImpl.html#shutdownOutput()">shutdownOutput</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Disables the output stream for this socket.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/net/SocketImpl.html#toString()">toString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the address and port of this socket as a <code>String</code>.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.net.SocketOptions"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface java.net.<A HREF="../../java/net/SocketOptions.html">SocketOptions</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../java/net/SocketOptions.html#getOption(int)">getOption</A>, <A HREF="../../java/net/SocketOptions.html#setOption(int, java.lang.Object)">setOption</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="fd"><!-- --></A><H3>fd</H3><PRE>protected <A HREF="../../java/io/FileDescriptor.html">FileDescriptor</A> <B>fd</B></PRE><DL><DD>The file descriptor object for this socket.</DL><HR><A NAME="address"><!-- --></A><H3>address</H3><PRE>protected <A HREF="../../java/net/InetAddress.html">InetAddress</A> <B>address</B></PRE><DL><DD>The IP address of the remote end of this socket.</DL><HR><A NAME="port"><!-- --></A><H3>port</H3><PRE>protected int <B>port</B></PRE><DL><DD>The port number on the remote host to which this socket is connected.</DL><HR><A NAME="localport"><!-- --></A><H3>localport</H3><PRE>protected int <B>localport</B></PRE><DL><DD>The local port number to which this socket is connected.</DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="SocketImpl()"><!-- --></A><H3>SocketImpl</H3><PRE>public <B>SocketImpl</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="create(boolean)"><!-- --></A><H3>create</H3><PRE>protected abstract void <B>create</B>(boolean&nbsp;stream)                        throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Creates either a stream or a datagram socket.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>stream</CODE> - if <code>true</code>, create a stream socket;                      otherwise, create a datagram socket.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O error occurs while creating the               socket.</DL></DD></DL><HR><A NAME="connect(java.lang.String, int)"><!-- --></A><H3>connect</H3><PRE>protected abstract void <B>connect</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;host,                                int&nbsp;port)                         throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Connects this socket to the specified port on the named host.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>host</CODE> - the name of the remote host.<DD><CODE>port</CODE> - the port number.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O error occurs when connecting to the               remote host.</DL></DD></DL><HR><A NAME="connect(java.net.InetAddress, int)"><!-- --></A><H3>connect</H3><PRE>protected abstract void <B>connect</B>(<A HREF="../../java/net/InetAddress.html">InetAddress</A>&nbsp;address,                                int&nbsp;port)                         throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Connects this socket to the specified port number on the specified host.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>address</CODE> - the IP address of the remote host.<DD><CODE>port</CODE> - the port number.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O error occurs when attempting a               connection.</DL></DD></DL><HR><A NAME="bind(java.net.InetAddress, int)"><!-- --></A><H3>bind</H3><PRE>protected abstract void <B>bind</B>(<A HREF="../../java/net/InetAddress.html">InetAddress</A>&nbsp;host,                             int&nbsp;port)                      throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Binds this socket to the specified port number on the specified host.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>host</CODE> - the IP address of the remote host.<DD><CODE>port</CODE> - the port number.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O error occurs when binding this socket.</DL></DD></DL><HR><A NAME="listen(int)"><!-- --></A><H3>listen</H3><PRE>protected abstract void <B>listen</B>(int&nbsp;backlog)                        throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Sets the maximum queue length for incoming connection indications  (a request to connect) to the <code>count</code> argument. If a  connection indication arrives when the queue is full, the  connection is refused.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>backlog</CODE> - the maximum length of the queue.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O error occurs when creating the queue.</DL></DD></DL><HR><A NAME="accept(java.net.SocketImpl)"><!-- --></A><H3>accept</H3><PRE>protected abstract void <B>accept</B>(<A HREF="../../java/net/SocketImpl.html">SocketImpl</A>&nbsp;s)

⌨️ 快捷键说明

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