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

📄 datagramsocketimpl.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 2 页
字号:
protected <A HREF="../../java/io/FileDescriptor.html">FileDescriptor</A> <B>fd</B></PRE><DL><DD>The file descriptor object.</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="DatagramSocketImpl()"><!-- --></A><H3>DatagramSocketImpl</H3><PRE>public <B>DatagramSocketImpl</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()"><!-- --></A><H3>create</H3><PRE>protected abstract void <B>create</B>()                        throws <A HREF="../../java/net/SocketException.html">SocketException</A></PRE><DL><DD>Creates a datagram socket.<DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../java/net/SocketException.html">SocketException</A></CODE> - if there is an error in the  underlying protocol, such as a TCP error.</DL></DD></DL><HR><A NAME="bind(int, java.net.InetAddress)"><!-- --></A><H3>bind</H3><PRE>protected abstract void <B>bind</B>(int&nbsp;lport,                             <A HREF="../../java/net/InetAddress.html">InetAddress</A>&nbsp;laddr)                      throws <A HREF="../../java/net/SocketException.html">SocketException</A></PRE><DL><DD>Binds a datagram socket to a local port and address.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>lport</CODE> - the local port<DD><CODE>laddr</CODE> - the local address<DT><B>Throws:</B><DD><CODE><A HREF="../../java/net/SocketException.html">SocketException</A></CODE> - if there is an error in the underlying protocol, such as a TCP error.</DL></DD></DL><HR><A NAME="send(java.net.DatagramPacket)"><!-- --></A><H3>send</H3><PRE>protected abstract void <B>send</B>(<A HREF="../../java/net/DatagramPacket.html">DatagramPacket</A>&nbsp;p)                      throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Sends a datagram packet. The packet contains the data and the destination address to send the packet to.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>p</CODE> - the packet to be sent.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O exception occurs while sending the  datagram packet.</DL></DD></DL><HR><A NAME="peek(java.net.InetAddress)"><!-- --></A><H3>peek</H3><PRE>protected abstract int <B>peek</B>(<A HREF="../../java/net/InetAddress.html">InetAddress</A>&nbsp;i)                     throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Peek at the packet to see who it is from.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - an InetAddress object<DT><B>Returns:</B><DD>the address which the packet came from.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O exception occurs</DL></DD></DL><HR><A NAME="receive(java.net.DatagramPacket)"><!-- --></A><H3>receive</H3><PRE>protected abstract void <B>receive</B>(<A HREF="../../java/net/DatagramPacket.html">DatagramPacket</A>&nbsp;p)                         throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Receive the datagram packet.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>p</CODE> - the Packet Received.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O exception occurs while receiving the datagram packet.</DL></DD></DL><HR><A NAME="setTTL(byte)"><!-- --></A><H3>setTTL</H3><PRE>protected abstract void <B>setTTL</B>(byte&nbsp;ttl)                        throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>use setTimeToLive instead.</I><P><DD>Set the TTL (time-to-live) option.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ttl</CODE> - a byte specifying the TTL value<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O exception occurs while setting the time-to-live option.<DT><B>See Also: </B><DD><A HREF="../../java/net/DatagramSocketImpl.html#getTTL()"><CODE>getTTL()</CODE></A></DL></DD></DL><HR><A NAME="getTTL()"><!-- --></A><H3>getTTL</H3><PRE>protected abstract byte <B>getTTL</B>()                        throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>use getTimeToLive instead.</I><P><DD>Retrieve the TTL (time-to-live) option.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a byte representing the TTL value<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O exception occurs while retrieving the time-to-live option<DT><B>See Also: </B><DD><A HREF="../../java/net/DatagramSocketImpl.html#setTTL(byte)"><CODE>setTTL(byte)</CODE></A></DL></DD></DL><HR><A NAME="setTimeToLive(int)"><!-- --></A><H3>setTimeToLive</H3><PRE>protected abstract void <B>setTimeToLive</B>(int&nbsp;ttl)                               throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Set the TTL (time-to-live) option.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ttl</CODE> - an <tt>int</tt> specifying the time-to-live value<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O exception occurs while setting the time-to-live option.<DT><B>See Also: </B><DD><A HREF="../../java/net/DatagramSocketImpl.html#getTimeToLive()"><CODE>getTimeToLive()</CODE></A></DL></DD></DL><HR><A NAME="getTimeToLive()"><!-- --></A><H3>getTimeToLive</H3><PRE>protected abstract int <B>getTimeToLive</B>()                              throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Retrieve the TTL (time-to-live) option.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an <tt>int</tt> representing the time-to-live value<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O exception occurs while retrieving the time-to-live option<DT><B>See Also: </B><DD><A HREF="../../java/net/DatagramSocketImpl.html#setTimeToLive(int)"><CODE>setTimeToLive(int)</CODE></A></DL></DD></DL><HR><A NAME="join(java.net.InetAddress)"><!-- --></A><H3>join</H3><PRE>protected abstract void <B>join</B>(<A HREF="../../java/net/InetAddress.html">InetAddress</A>&nbsp;inetaddr)                      throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Join the multicast group.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>inetaddr</CODE> - multicast address to join.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O exception occurs while joining the multicast group.</DL></DD></DL><HR><A NAME="leave(java.net.InetAddress)"><!-- --></A><H3>leave</H3><PRE>protected abstract void <B>leave</B>(<A HREF="../../java/net/InetAddress.html">InetAddress</A>&nbsp;inetaddr)                       throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Leave the multicast group.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>inetaddr</CODE> - multicast address to leave.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O exception occurs while leaving the multicast group.</DL></DD></DL><HR><A NAME="close()"><!-- --></A><H3>close</H3><PRE>protected abstract void <B>close</B>()</PRE><DL><DD>Close the socket.<DD><DL></DL></DD></DL><HR><A NAME="getLocalPort()"><!-- --></A><H3>getLocalPort</H3><PRE>protected int <B>getLocalPort</B>()</PRE><DL><DD>Gets the local port.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an <tt>int</tt> representing the local port value</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>Gets the datagram socket file descriptor.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <tt>FileDescriptor</tt> object representing the datagram socket file descriptor</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/DatagramSocketImpl.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/DatagramSocket.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../java/net/HttpURLConnection.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="DatagramSocketImpl.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 + -