Uses of Class
java.net.InetAddress
-
Packages that use InetAddress 软件包 描述 com.sun.nio.sctp 用于流控制传输协议的Java API。java.lang 提供对Java编程语言设计至关重要的类。java.net 提供实现网络应用程序的类。java.nio.channels 定义通道,其表示与能够执行I / O操作的实体的连接,例如文件和套接字; 定义选择器,用于多路复用,非阻塞I / O操作。javax.net 提供网络应用程序的类。javax.net.ssl 为安全套接字包提供类。javax.security.auth.kerberos 此包包含与Kerberos网络身份验证协议相关的实用程序类。org.ietf.jgss 该软件包提供了一个框架,允许应用程序开发人员使用诸如Kerberos等各种基础安全机制(使用统一API)的身份验证,数据完整性和数据机密性等安全服务。 -
-
Uses of InetAddress in com.sun.nio.sctp
Methods in com.sun.nio.sctp with parameters of type InetAddress Modifier and Type 方法 描述 abstract SctpChannel
SctpChannel. bindAddress(InetAddress address)
将给定地址添加到通道插座的绑定地址。abstract SctpMultiChannel
SctpMultiChannel. bindAddress(InetAddress address)
将给定地址添加到通道插座的绑定地址。abstract SctpServerChannel
SctpServerChannel. bindAddress(InetAddress address)
将给定地址添加到通道插座的绑定地址。abstract SctpChannel
SctpChannel. unbindAddress(InetAddress address)
从通道的套接字的绑定地址中删除给定的地址。abstract SctpMultiChannel
SctpMultiChannel. unbindAddress(InetAddress address)
从通道的套接字的绑定地址中删除给定的地址。abstract SctpServerChannel
SctpServerChannel. unbindAddress(InetAddress address)
从通道的套接字的绑定地址中删除给定的地址。 -
Uses of InetAddress in java.lang
Methods in java.lang with parameters of type InetAddress Modifier and Type 方法 描述 void
SecurityManager. checkMulticast(InetAddress maddr)
如果调用线程不允许使用(加入/离开/发送/接收)IP组播,则抛出一个SecurityException
。void
SecurityManager. checkMulticast(InetAddress maddr, byte ttl)
已过时。请改用#checkPermission(java.security.Permission) -
Uses of InetAddress in java.net
Subclasses of InetAddress in java.net Modifier and Type Class 描述 class
Inet4Address
该类表示Internet协议版本4(IPv4)地址。class
Inet6Address
该类表示Internet协议版本6(IPv6)地址。Fields in java.net declared as InetAddress Modifier and Type Field 描述 protected InetAddress
SocketImpl. address
该套接字远端的IP地址。Methods in java.net that return InetAddress Modifier and Type 方法 描述 InetAddress
DatagramPacket. getAddress()
返回该数据报发送或接收数据报的计算机的IP地址。InetAddress
InetSocketAddress. getAddress()
获得InetAddress
。InetAddress
InterfaceAddress. getAddress()
返回此地址的InetAddress
。static InetAddress[]
InetAddress. getAllByName(String host)
给定主机的名称,根据系统上配置的名称服务返回其IP地址数组。InetAddress
InterfaceAddress. getBroadcast()
为此InterfaceAddress的广播地址返回InetAddress
。static InetAddress
InetAddress. getByAddress(byte[] addr)
给出原始IP地址的InetAddress
对象。static InetAddress
InetAddress. getByAddress(String host, byte[] addr)
根据提供的主机名和IP地址创建InetAddress。static InetAddress
InetAddress. getByName(String host)
确定主机名称的IP地址。protected InetAddress
URLStreamHandler. getHostAddress(URL u)
获取我们的主机的IP地址。InetAddress
DatagramSocket. getInetAddress()
返回此套接字连接到的地址。InetAddress
ServerSocket. getInetAddress()
返回此服务器套接字的本地地址。InetAddress
Socket. getInetAddress()
返回套接字所连接的地址。protected InetAddress
SocketImpl. getInetAddress()
返回此套接字address
字段的值。InetAddress
MulticastSocket. getInterface()
检索用于组播数据包的网络接口的地址。InetAddress
DatagramSocket. getLocalAddress()
获取套接字所绑定的本地地址。InetAddress
Socket. getLocalAddress()
获取套接字所绑定的本地地址。static InetAddress
InetAddress. getLocalHost()
返回本地主机的地址。static InetAddress
InetAddress. getLoopbackAddress()
返回回送地址。protected InetAddress
Authenticator. getRequestingSite()
获取InetAddress
请求授权的站点,或者null
如果不可用。Methods in java.net that return types with arguments of type InetAddress Modifier and Type 方法 描述 Enumeration<InetAddress>
NetworkInterface. getInetAddresses()
获取绑定到此网络接口的所有或一部分InetAddress的枚举。Stream<InetAddress>
NetworkInterface. inetAddresses()
获取绑定到此网络接口的InetAddresses的全部或一部分子流。Methods in java.net with parameters of type InetAddress Modifier and Type 方法 描述 protected abstract void
DatagramSocketImpl. bind(int lport, InetAddress laddr)
将数据报套接字绑定到本地端口和地址。protected abstract void
SocketImpl. bind(InetAddress host, int port)
将此套接字绑定到指定的本地IP地址和端口号。void
DatagramSocket. connect(InetAddress address, int port)
将套接字连接到此套接字的远程地址。protected void
DatagramSocketImpl. connect(InetAddress address, int port)
将数据报套接字连接到远程目标。protected abstract void
SocketImpl. connect(InetAddress address, int port)
将此套接字连接到指定主机上的指定端口号。static NetworkInterface
NetworkInterface. getByInetAddress(InetAddress addr)
搜索具有绑定到指定的Internet协议(IP)地址的网络接口的便利方法。protected abstract void
DatagramSocketImpl. join(InetAddress inetaddr)
加入组播组。void
MulticastSocket. joinGroup(InetAddress mcastaddr)
加入组播组。protected abstract void
DatagramSocketImpl. leave(InetAddress inetaddr)
离开组播组。void
MulticastSocket. leaveGroup(InetAddress mcastaddr)
离开多播组。protected abstract int
DatagramSocketImpl. peek(InetAddress i)
仔细看看它是从哪里来的。static PasswordAuthentication
Authenticator. requestPasswordAuthentication(String host, InetAddress addr, int port, String protocol, String prompt, String scheme)
请向系统注册的验证者询问密码。static PasswordAuthentication
Authenticator. requestPasswordAuthentication(String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, Authenticator.RequestorType reqType)
请向系统注册的验证者询问密码。static PasswordAuthentication
Authenticator. requestPasswordAuthentication(Authenticator authenticator, String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, Authenticator.RequestorType reqType)
询问给定的authenticator
密码。static PasswordAuthentication
Authenticator. requestPasswordAuthentication(InetAddress addr, int port, String protocol, String prompt, String scheme)
请向系统注册的验证者询问密码。PasswordAuthentication
Authenticator. requestPasswordAuthenticationInstance(String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, Authenticator.RequestorType reqType)
向该验证者询问密码。void
DatagramPacket. setAddress(InetAddress iaddr)
设置该数据报发送到的机器的IP地址。void
MulticastSocket. setInterface(InetAddress inf)
设置由行为受网络接口值影响的方法使用的组播网络接口。Constructors in java.net with parameters of type InetAddress Constructor 描述 DatagramPacket(byte[] buf, int offset, int length, InetAddress address, int port)
构造一个数据包,发送长度为length
的数据包,length
包含指定主机上指定的端口号,偏移量为ioffset
。DatagramPacket(byte[] buf, int length, InetAddress address, int port)
构造一个数据报包,将数据包长度为length
,发送到指定主机上的指定端口号。DatagramSocket(int port, InetAddress laddr)
创建一个数据报套接字,绑定到指定的本地地址。InetSocketAddress(InetAddress addr, int port)
从IP地址和端口号创建套接字地址。ServerSocket(int port, int backlog, InetAddress bindAddr)
创建一个具有指定端口的服务器,侦听backlog和本地IP地址绑定。Socket(String host, int port, InetAddress localAddr, int localPort)
创建套接字并将其连接到指定远程端口上的指定远程主机。Socket(InetAddress address, int port)
创建流套接字并将其连接到指定IP地址的指定端口号。Socket(InetAddress host, int port, boolean stream)
已过时。使用DatagramSocket代替UDP传输。Socket(InetAddress address, int port, InetAddress localAddr, int localPort)
创建套接字并将其连接到指定的远程端口上指定的远程地址。 -
Uses of InetAddress in java.nio.channels
Methods in java.nio.channels that return InetAddress Modifier and Type 方法 描述 abstract InetAddress
MembershipKey. group()
返回创建此成员资格密钥的多播组。abstract InetAddress
MembershipKey. sourceAddress()
如果此成员资格密钥是源特定的,则返回源地址,如果此成员资格不是源特定的,则返回null
。Methods in java.nio.channels with parameters of type InetAddress Modifier and Type 方法 描述 abstract MembershipKey
MembershipKey. block(InetAddress source)
阻止来自给定源地址的组播数据报。MembershipKey
MulticastChannel. join(InetAddress group, NetworkInterface interf)
加入组播组,开始接收发送到组的所有数据报,返回成员密钥。MembershipKey
MulticastChannel. join(InetAddress group, NetworkInterface interf, InetAddress source)
加入组播组,开始从给定的源地址接收发送到组的数据报。abstract MembershipKey
MembershipKey. unblock(InetAddress source)
从先前使用block
方法阻止的给定源地址中解除阻塞多播数据报。 -
Uses of InetAddress in javax.net
Methods in javax.net with parameters of type InetAddress Modifier and Type 方法 描述 abstract ServerSocket
ServerSocketFactory. createServerSocket(int port, int backlog, InetAddress ifAddress)
返回绑定到指定端口的服务器套接字,具有指定的listen backlog和本地IP。abstract Socket
SocketFactory. createSocket(String host, int port, InetAddress localHost, int localPort)
创建套接字并将其连接到指定远程端口上的指定远程主机。abstract Socket
SocketFactory. createSocket(InetAddress host, int port)
创建套接字并将其连接到指定地址处的指定端口号。abstract Socket
SocketFactory. createSocket(InetAddress address, int port, InetAddress localAddress, int localPort)
创建套接字并将其连接到指定远程端口上指定的远程地址。 -
Uses of InetAddress in javax.net.ssl
Constructors in javax.net.ssl with parameters of type InetAddress Constructor 描述 SSLServerSocket(int port, int backlog, InetAddress address)
仅由子类使用。SSLSocket(String host, int port, InetAddress clientAddress, int clientPort)
仅由子类使用。SSLSocket(InetAddress address, int port)
仅由子类使用。SSLSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort)
仅由子类使用。 -
Uses of InetAddress in javax.security.auth.kerberos
Methods in javax.security.auth.kerberos that return InetAddress Modifier and Type 方法 描述 InetAddress[]
KerberosTicket. getClientAddresses()
返回可以使用票证的地址列表。Constructors in javax.security.auth.kerberos with parameters of type InetAddress Constructor 描述 KerberosTicket(byte[] asn1Encoding, KerberosPrincipal client, KerberosPrincipal server, byte[] sessionKey, int keyType, boolean[] flags, Date authTime, Date startTime, Date endTime, Date renewTill, InetAddress[] clientAddresses)
构造KerberosTicket
使用客户端从KDC接收或从缓存读取的凭据信息。 -
Uses of InetAddress in org.ietf.jgss
Methods in org.ietf.jgss that return InetAddress Modifier and Type 方法 描述 InetAddress
ChannelBinding. getAcceptorAddress()
获取该通道绑定的接受者地址。InetAddress
ChannelBinding. getInitiatorAddress()
获取此通道绑定的启动器地址。Constructors in org.ietf.jgss with parameters of type InetAddress Constructor 描述 ChannelBinding(InetAddress initAddr, InetAddress acceptAddr, byte[] appData)
使用用户提供的地址信息和数据创建ChannelBinding对象。
-