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 该软件包提供了一个框架,允许应用程序开发人员使用统一的API从各种底层安全机制(如Kerberos)中使用安全服务,如身份验证,数据完整性和数据机密性。 -
-
Uses of InetAddress in com.sun.nio.sctp
Methods in com.sun.nio.sctp with parameters of type InetAddress 变量和类型 方法 描述 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 变量和类型 方法 描述 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 变量和类型 类 描述 class
Inet4Address
此类表示Internet协议版本4(IPv4)地址。class
Inet6Address
此类表示Internet协议版本6(IPv6)地址。Fields in java.net declared as InetAddress 变量和类型 字段 描述 protected InetAddress
SocketImpl. address
此套接字远程端的IP地址。Methods in java.net that return InetAddress 变量和类型 方法 描述 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()
获取请求授权的站点的null
如果不可用,则获取InetAddress
。Methods in java.net that return types with arguments of type InetAddress 变量和类型 方法 描述 Enumeration<InetAddress>
NetworkInterface. getInetAddresses()
获取包含绑定到此网络接口的全部或部分InetAddresses的枚举。Stream<InetAddress>
NetworkInterface. inetAddresses()
获取绑定到此网络接口的所有或部分InetAddresses的流。Methods in java.net with parameters of type InetAddress 变量和类型 方法 描述 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 构造器 描述 DatagramPacket(byte[] buf, int offset, int length, InetAddress address, int port)
构造一个数据报包,用于将长度为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 变量和类型 方法 描述 abstract InetAddress
MembershipKey. group()
返回为其创建此成员资格密钥的多播组。abstract InetAddress
MembershipKey. sourceAddress()
如果此成员资格密钥是特定于源的,则返回源地址;如果此成员资格不是特定于源的,则返回null
。Methods in java.nio.channels with parameters of type InetAddress 变量和类型 方法 描述 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)
-
Uses of InetAddress in javax.net
Methods in javax.net with parameters of type InetAddress 变量和类型 方法 描述 abstract ServerSocket
ServerSocketFactory. createServerSocket(int port, int backlog, InetAddress ifAddress)
返回绑定到指定端口的服务器套接字,具有指定的侦听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 构造器 描述 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 变量和类型 方法 描述 InetAddress[]
KerberosTicket. getClientAddresses()
返回可以使用故障单的地址列表。Constructors in javax.security.auth.kerberos with parameters of type InetAddress 构造器 描述 KerberosTicket(byte[] asn1Encoding, KerberosPrincipal client, KerberosPrincipal server, byte[] sessionKey, int keyType, boolean[] flags, Date authTime, Date startTime, Date endTime, Date renewTill, InetAddress[] clientAddresses)
使用客户端从KDC接收或从缓存中读取的凭据信息构造KerberosTicket
。 -
Uses of InetAddress in org.ietf.jgss
Methods in org.ietf.jgss that return InetAddress 变量和类型 方法 描述 InetAddress
ChannelBinding. getAcceptorAddress()
获取此通道绑定的接受者地址。InetAddress
ChannelBinding. getInitiatorAddress()
获取此通道绑定的启动器地址。Constructors in org.ietf.jgss with parameters of type InetAddress 构造器 描述 ChannelBinding(InetAddress initAddr, InetAddress acceptAddr, byte[] appData)
使用用户提供的地址信息和数据创建ChannelBinding对象。
-