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 SctpChannelSctpChannel. bindAddress(InetAddress address)将给定地址添加到通道插座的绑定地址。abstract SctpMultiChannelSctpMultiChannel. bindAddress(InetAddress address)将给定地址添加到通道插座的绑定地址。abstract SctpServerChannelSctpServerChannel. bindAddress(InetAddress address)将给定地址添加到通道插座的绑定地址。abstract SctpChannelSctpChannel. unbindAddress(InetAddress address)从通道的套接字的绑定地址中删除给定的地址。abstract SctpMultiChannelSctpMultiChannel. unbindAddress(InetAddress address)从通道的套接字的绑定地址中删除给定的地址。abstract SctpServerChannelSctpServerChannel. unbindAddress(InetAddress address)从通道的套接字的绑定地址中删除给定的地址。 -
Uses of InetAddress in java.lang
Methods in java.lang with parameters of type InetAddress Modifier and Type 方法 描述 voidSecurityManager. checkMulticast(InetAddress maddr)如果调用线程不允许使用(加入/离开/发送/接收)IP组播,则抛出一个SecurityException。voidSecurityManager. 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 描述 classInet4Address该类表示Internet协议版本4(IPv4)地址。classInet6Address该类表示Internet协议版本6(IPv6)地址。Fields in java.net declared as InetAddress Modifier and Type Field 描述 protected InetAddressSocketImpl. address该套接字远端的IP地址。Methods in java.net that return InetAddress Modifier and Type 方法 描述 InetAddressDatagramPacket. getAddress()返回该数据报发送或接收数据报的计算机的IP地址。InetAddressInetSocketAddress. getAddress()获得InetAddress。InetAddressInterfaceAddress. getAddress()返回此地址的InetAddress。static InetAddress[]InetAddress. getAllByName(String host)给定主机的名称,根据系统上配置的名称服务返回其IP地址数组。InetAddressInterfaceAddress. getBroadcast()为此InterfaceAddress的广播地址返回InetAddress。static InetAddressInetAddress. getByAddress(byte[] addr)给出原始IP地址的InetAddress对象。static InetAddressInetAddress. getByAddress(String host, byte[] addr)根据提供的主机名和IP地址创建InetAddress。static InetAddressInetAddress. getByName(String host)确定主机名称的IP地址。protected InetAddressURLStreamHandler. getHostAddress(URL u)获取我们的主机的IP地址。InetAddressDatagramSocket. getInetAddress()返回此套接字连接到的地址。InetAddressServerSocket. getInetAddress()返回此服务器套接字的本地地址。InetAddressSocket. getInetAddress()返回套接字所连接的地址。protected InetAddressSocketImpl. getInetAddress()返回此套接字address字段的值。InetAddressMulticastSocket. getInterface()检索用于组播数据包的网络接口的地址。InetAddressDatagramSocket. getLocalAddress()获取套接字所绑定的本地地址。InetAddressSocket. getLocalAddress()获取套接字所绑定的本地地址。static InetAddressInetAddress. getLocalHost()返回本地主机的地址。static InetAddressInetAddress. getLoopbackAddress()返回回送地址。protected InetAddressAuthenticator. 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 voidDatagramSocketImpl. bind(int lport, InetAddress laddr)将数据报套接字绑定到本地端口和地址。protected abstract voidSocketImpl. bind(InetAddress host, int port)将此套接字绑定到指定的本地IP地址和端口号。voidDatagramSocket. connect(InetAddress address, int port)将套接字连接到此套接字的远程地址。protected voidDatagramSocketImpl. connect(InetAddress address, int port)将数据报套接字连接到远程目标。protected abstract voidSocketImpl. connect(InetAddress address, int port)将此套接字连接到指定主机上的指定端口号。static NetworkInterfaceNetworkInterface. getByInetAddress(InetAddress addr)搜索具有绑定到指定的Internet协议(IP)地址的网络接口的便利方法。protected abstract voidDatagramSocketImpl. join(InetAddress inetaddr)加入组播组。voidMulticastSocket. joinGroup(InetAddress mcastaddr)加入组播组。protected abstract voidDatagramSocketImpl. leave(InetAddress inetaddr)离开组播组。voidMulticastSocket. leaveGroup(InetAddress mcastaddr)离开多播组。protected abstract intDatagramSocketImpl. peek(InetAddress i)仔细看看它是从哪里来的。static PasswordAuthenticationAuthenticator. requestPasswordAuthentication(String host, InetAddress addr, int port, String protocol, String prompt, String scheme)请向系统注册的验证者询问密码。static PasswordAuthenticationAuthenticator. requestPasswordAuthentication(String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, Authenticator.RequestorType reqType)请向系统注册的验证者询问密码。static PasswordAuthenticationAuthenticator. requestPasswordAuthentication(Authenticator authenticator, String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, Authenticator.RequestorType reqType)询问给定的authenticator密码。static PasswordAuthenticationAuthenticator. requestPasswordAuthentication(InetAddress addr, int port, String protocol, String prompt, String scheme)请向系统注册的验证者询问密码。PasswordAuthenticationAuthenticator. requestPasswordAuthenticationInstance(String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, Authenticator.RequestorType reqType)向该验证者询问密码。voidDatagramPacket. setAddress(InetAddress iaddr)设置该数据报发送到的机器的IP地址。voidMulticastSocket. 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 InetAddressMembershipKey. group()返回创建此成员资格密钥的多播组。abstract InetAddressMembershipKey. sourceAddress()如果此成员资格密钥是源特定的,则返回源地址,如果此成员资格不是源特定的,则返回null。Methods in java.nio.channels with parameters of type InetAddress Modifier and Type 方法 描述 abstract MembershipKeyMembershipKey. block(InetAddress source)阻止来自给定源地址的组播数据报。MembershipKeyMulticastChannel. join(InetAddress group, NetworkInterface interf)加入组播组,开始接收发送到组的所有数据报,返回成员密钥。MembershipKeyMulticastChannel. join(InetAddress group, NetworkInterface interf, InetAddress source)加入组播组,开始从给定的源地址接收发送到组的数据报。abstract MembershipKeyMembershipKey. unblock(InetAddress source)从先前使用block方法阻止的给定源地址中解除阻塞多播数据报。 -
Uses of InetAddress in javax.net
Methods in javax.net with parameters of type InetAddress Modifier and Type 方法 描述 abstract ServerSocketServerSocketFactory. createServerSocket(int port, int backlog, InetAddress ifAddress)返回绑定到指定端口的服务器套接字,具有指定的listen backlog和本地IP。abstract SocketSocketFactory. createSocket(String host, int port, InetAddress localHost, int localPort)创建套接字并将其连接到指定远程端口上的指定远程主机。abstract SocketSocketFactory. createSocket(InetAddress host, int port)创建套接字并将其连接到指定地址处的指定端口号。abstract SocketSocketFactory. 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 方法 描述 InetAddressChannelBinding. getAcceptorAddress()获取该通道绑定的接受者地址。InetAddressChannelBinding. getInitiatorAddress()获取此通道绑定的启动器地址。Constructors in org.ietf.jgss with parameters of type InetAddress Constructor 描述 ChannelBinding(InetAddress initAddr, InetAddress acceptAddr, byte[] appData)使用用户提供的地址信息和数据创建ChannelBinding对象。
-