📄 inetaddress.html
字号:
</TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../java/net/package-summary.html">java.net</A> with parameters of type <A HREF="../../../java/net/InetAddress.html">InetAddress</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>DatagramSocket.</B><B><A HREF="../../../java/net/DatagramSocket.html#connect(java.net.InetAddress, int)">connect</A></B>(<A HREF="../../../java/net/InetAddress.html">InetAddress</A> address, int port)</CODE><BR> Connects the socket to a remote address for this socket.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected abstract void</CODE></FONT></TD><TD><CODE><B>SocketImpl.</B><B><A HREF="../../../java/net/SocketImpl.html#connect(java.net.InetAddress, int)">connect</A></B>(<A HREF="../../../java/net/InetAddress.html">InetAddress</A> address, int port)</CODE><BR> Connects this socket to the specified port number on the specified host.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected abstract void</CODE></FONT></TD><TD><CODE><B>SocketImpl.</B><B><A HREF="../../../java/net/SocketImpl.html#bind(java.net.InetAddress, int)">bind</A></B>(<A HREF="../../../java/net/InetAddress.html">InetAddress</A> host, int port)</CODE><BR> Binds this socket to the specified port number on the specified host.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>MulticastSocket.</B><B><A HREF="../../../java/net/MulticastSocket.html#joinGroup(java.net.InetAddress)">joinGroup</A></B>(<A HREF="../../../java/net/InetAddress.html">InetAddress</A> mcastaddr)</CODE><BR> Joins a multicast group.Its behavior may be affected by <code>setInterface</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>MulticastSocket.</B><B><A HREF="../../../java/net/MulticastSocket.html#leaveGroup(java.net.InetAddress)">leaveGroup</A></B>(<A HREF="../../../java/net/InetAddress.html">InetAddress</A> mcastaddr)</CODE><BR> Leave a multicast group.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>MulticastSocket.</B><B><A HREF="../../../java/net/MulticastSocket.html#setInterface(java.net.InetAddress)">setInterface</A></B>(<A HREF="../../../java/net/InetAddress.html">InetAddress</A> inf)</CODE><BR> Set the multicast network interface used by methods whose behavior would be affected by the value of the network interface.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected abstract void</CODE></FONT></TD><TD><CODE><B>DatagramSocketImpl.</B><B><A HREF="../../../java/net/DatagramSocketImpl.html#bind(int, java.net.InetAddress)">bind</A></B>(int lport, <A HREF="../../../java/net/InetAddress.html">InetAddress</A> laddr)</CODE><BR> Binds a datagram socket to a local port and address.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected abstract int</CODE></FONT></TD><TD><CODE><B>DatagramSocketImpl.</B><B><A HREF="../../../java/net/DatagramSocketImpl.html#peek(java.net.InetAddress)">peek</A></B>(<A HREF="../../../java/net/InetAddress.html">InetAddress</A> i)</CODE><BR> Peek at the packet to see who it is from.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected abstract void</CODE></FONT></TD><TD><CODE><B>DatagramSocketImpl.</B><B><A HREF="../../../java/net/DatagramSocketImpl.html#join(java.net.InetAddress)">join</A></B>(<A HREF="../../../java/net/InetAddress.html">InetAddress</A> inetaddr)</CODE><BR> Join the multicast group.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected abstract void</CODE></FONT></TD><TD><CODE><B>DatagramSocketImpl.</B><B><A HREF="../../../java/net/DatagramSocketImpl.html#leave(java.net.InetAddress)">leave</A></B>(<A HREF="../../../java/net/InetAddress.html">InetAddress</A> inetaddr)</CODE><BR> Leave the multicast group.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>DatagramPacket.</B><B><A HREF="../../../java/net/DatagramPacket.html#setAddress(java.net.InetAddress)">setAddress</A></B>(<A HREF="../../../java/net/InetAddress.html">InetAddress</A> iaddr)</CODE><BR> Sets the IP address of the machine to which this datagram is being sent.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../java/net/PasswordAuthentication.html">PasswordAuthentication</A></CODE></FONT></TD><TD><CODE><B>Authenticator.</B><B><A HREF="../../../java/net/Authenticator.html#requestPasswordAuthentication(java.net.InetAddress, int, java.lang.String, java.lang.String, java.lang.String)">requestPasswordAuthentication</A></B>(<A HREF="../../../java/net/InetAddress.html">InetAddress</A> addr, int port, <A HREF="../../../java/lang/String.html">String</A> protocol, <A HREF="../../../java/lang/String.html">String</A> prompt, <A HREF="../../../java/lang/String.html">String</A> scheme)</CODE><BR> Ask the authenticator that has been registered with the system for a password.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Constructors in <A HREF="../../../java/net/package-summary.html">java.net</A> with parameters of type <A HREF="../../../java/net/InetAddress.html">InetAddress</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/net/DatagramSocket.html#DatagramSocket(int, java.net.InetAddress)">DatagramSocket</A></B>(int port, <A HREF="../../../java/net/InetAddress.html">InetAddress</A> laddr)</CODE><BR> Creates a datagram socket, bound to the specified local address.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/net/Socket.html#Socket(java.net.InetAddress, int)">Socket</A></B>(<A HREF="../../../java/net/InetAddress.html">InetAddress</A> address, int port)</CODE><BR> Creates a stream socket and connects it to the specified port number at the specified IP address.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/net/Socket.html#Socket(java.lang.String, int, java.net.InetAddress, int)">Socket</A></B>(<A HREF="../../../java/lang/String.html">String</A> host, int port, <A HREF="../../../java/net/InetAddress.html">InetAddress</A> localAddr, int localPort)</CODE><BR> Creates a socket and connects it to the specified remote host on the specified remote port.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/net/Socket.html#Socket(java.net.InetAddress, int, java.net.InetAddress, int)">Socket</A></B>(<A HREF="../../../java/net/InetAddress.html">InetAddress</A> address, int port, <A HREF="../../../java/net/InetAddress.html">InetAddress</A> localAddr, int localPort)</CODE><BR> Creates a socket and connects it to the specified remote address on the specified remote port.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/net/Socket.html#Socket(java.net.InetAddress, int, boolean)">Socket</A></B>(<A HREF="../../../java/net/InetAddress.html">InetAddress</A> host, int port, boolean stream)</CODE><BR> <B>Deprecated.</B> <I>Use DatagramSocket instead for UDP transport.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/net/ServerSocket.html#ServerSocket(int, int, java.net.InetAddress)">ServerSocket</A></B>(int port, int backlog, <A HREF="../../../java/net/InetAddress.html">InetAddress</A> bindAddr)</CODE><BR> Create a server with the specified port, listen backlog, and local IP address to bind to.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/net/DatagramPacket.html#DatagramPacket(byte[], int, int, java.net.InetAddress, int)">DatagramPacket</A></B>(byte[] buf, int offset, int length, <A HREF="../../../java/net/InetAddress.html">InetAddress</A> address, int port)</CODE><BR> Constructs a datagram packet for sending packets of length <code>length</code> with offset <code>ioffset</code>to the specified port number on the specified host.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/net/DatagramPacket.html#DatagramPacket(byte[], int, java.net.InetAddress, int)">DatagramPacket</A></B>(byte[] buf, int length, <A HREF="../../../java/net/InetAddress.html">InetAddress</A> address, int port)</CODE><BR> Constructs a datagram packet for sending packets of length <code>length</code> to the specified port number on the specified host.</TD></TR></TABLE> <P><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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../java/net/InetAddress.html"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </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-files/index-1.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><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV NEXT</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="InetAddress.html" TARGET="_top"><B>NO FRAMES</B></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 + -