Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Uses of Class
java.net.InetAddress

Uses of InetAddress in java.net
 

Subclasses of InetAddress in java.net
 class Inet4Address
           
 class Inet6Address
           
 

Fields in java.net declared as InetAddress
protected  InetAddress SocketImpl.address
          The address of the remote end of the socket connection
(package private)  InetAddress PlainSocketImpl.localAddress
           
(package private)  InetAddress PlainDatagramSocketImpl.localAddress
           
private  InetAddress InetSocketAddress.addr
          Address of host.
private static InetAddress InetAddress.inaddr_any
          The special IP address INADDR_ANY.
(package private) static InetAddress InetAddress.ANY_IF
          Dummy InetAddress, used to bind socket to any (all) network interfaces.
(package private) static InetAddress InetAddress.LOCALHOST
          Stores static localhost address object.
private  InetAddress DatagramSocket.remoteAddress
          This is the address we are "connected" to
private  InetAddress DatagramPacket.address
          The address to which the packet should be sent or from which it was received.
private  InetAddress Authenticator.addr
          InternetAddress of the site requesting authentication
 

Methods in java.net that return InetAddress
protected  InetAddress URLStreamHandler.getHostAddress(URL url)
          Get the IP address of our host.
protected  InetAddress SocketImpl.getInetAddress()
          Returns the remote address this socket is connected to
 InetAddress Socket.getInetAddress()
          Returns the address of the remote end of the socket.
 InetAddress Socket.getLocalAddress()
          Returns the local address to which this socket is bound.
 InetAddress ServerSocket.getInetAddress()
          This method returns the local address to which this socket is bound
 InetAddress MulticastSocket.getInterface()
          Returns the interface being used for multicast packets
 InetAddress InetSocketAddress.getAddress()
          Returns the InetAddress or null if its unresolved
static InetAddress InetAddress.getByAddress(byte[] addr)
          Returns an InetAddress object given the raw IP address.
static InetAddress InetAddress.getByAddress(java.lang.String host, byte[] addr)
          Creates an InetAddress based on the provided host name and IP address.
static InetAddress InetAddress.getByName(java.lang.String hostname)
          Returns an InetAddress object representing the IP address of the given hostname.
static InetAddress[] InetAddress.getAllByName(java.lang.String hostname)
          Returns an array of InetAddress objects representing all the host/ip addresses of a given host, given the host's name.
(package private) static InetAddress InetAddress.getInaddrAny()
          Returns the special address INADDR_ANY used for binding to a local port on all IP addresses hosted by a the local host.
static InetAddress InetAddress.getLocalHost()
          Returns an InetAddress object representing the address of the current host.
 InetAddress DatagramSocket.getInetAddress()
          This method returns the remote address to which this socket is connected.
 InetAddress DatagramSocket.getLocalAddress()
          Returns the local address this datagram socket is bound to.
 InetAddress DatagramPacket.getAddress()
          Returns the address that this packet is being sent to or, if it was used to receive a packet, the address that is was received from.
protected  InetAddress Authenticator.getRequestingSite()
          This method returns the address of the site that is requesting authentication.
 

Methods in java.net with parameters of type InetAddress
protected abstract  void SocketImpl.connect(InetAddress host, int port)
          Connects to the remote address and port specified as arguments.
protected abstract  void SocketImpl.bind(InetAddress host, int port)
          Binds to the specified port on the specified addr.
protected  void PlainSocketImpl.connect(InetAddress host, int port)
           
protected  void PlainSocketImpl.bind(InetAddress host, int port)
           
protected  void PlainDatagramSocketImpl.bind(int lport, InetAddress laddr)
           
protected  void PlainDatagramSocketImpl.connect(InetAddress i, int port)
           
protected  int PlainDatagramSocketImpl.peek(InetAddress i)
           
private  void PlainDatagramSocketImpl.mcastGrp(InetAddress inetaddr, NetworkInterface netIf, boolean join)
           
protected  void PlainDatagramSocketImpl.join(InetAddress inetaddr)
           
protected  void PlainDatagramSocketImpl.leave(InetAddress inetaddr)
           
static NetworkInterface NetworkInterface.getByInetAddress(InetAddress addr)
          Return a network interface by its address
 void MulticastSocket.setInterface(InetAddress addr)
          Sets the interface to use for sending multicast packets.
 void MulticastSocket.joinGroup(InetAddress mcastaddr)
          Joins the specified multicast group.
 void MulticastSocket.leaveGroup(InetAddress mcastaddr)
          Leaves the specified multicast group
protected abstract  void DatagramSocketImpl.bind(int lport, InetAddress laddr)
          This method binds the socket to the specified local port and address.
protected abstract  int DatagramSocketImpl.peek(InetAddress i)
          Takes a peek at the next packet received in order to retrieve the address of the sender
protected  void DatagramSocketImpl.connect(InetAddress address, int port)
          Connects the socket to a host specified by address and port.
protected abstract  void DatagramSocketImpl.join(InetAddress inetaddr)
          Causes this socket to join the specified multicast group
protected abstract  void DatagramSocketImpl.leave(InetAddress inetaddr)
          Causes the socket to leave the specified multicast group.
 void DatagramSocket.connect(InetAddress address, int port)
          This method connects this socket to the specified address and port.
 void DatagramPacket.setAddress(InetAddress address)
          This sets the address to which the data packet will be transmitted.
static PasswordAuthentication Authenticator.requestPasswordAuthentication(InetAddress addr, int port, java.lang.String protocol, java.lang.String prompt, java.lang.String scheme)
          This method is called whenever a username and password for a given network operation is required.
static PasswordAuthentication Authenticator.requestPasswordAuthentication(java.lang.String host, InetAddress addr, int port, java.lang.String protocol, java.lang.String prompt, java.lang.String scheme)
          This method is called whenever a username and password for a given network operation is required.
 

Constructors in java.net with parameters of type InetAddress
Socket(InetAddress address, int port)
          Initializes a new instance of Socket and connects to the address and port number specified as arguments.
Socket(java.lang.String host, int port, InetAddress localAddr, int localPort)
          Initializes a new instance of Socket that connects to the named host on the specified port and binds to the specified local address and port.
Socket(InetAddress address, int port, InetAddress localAddr, int localPort)
          Initializes a new instance of Socket and connects to the address and port number specified as arguments, plus binds to the specified local address and port.
Socket(InetAddress host, int port, boolean stream)
          Deprecated. Use the DatagramSocket class to create datagram oriented sockets.
Socket(InetAddress raddr, int rport, InetAddress laddr, int lport, boolean stream)
          This constructor is where the real work takes place.
ServerSocket(int port, int backlog, InetAddress bindAddr)
          Creates a server socket and binds it to the specified port.
NetworkInterface(java.lang.String name, InetAddress address)
           
NetworkInterface(java.lang.String name, InetAddress[] addresses)
           
InetSocketAddress(InetAddress addr, int port)
          Constructs an InetSocketAddress instance.
DatagramSocket(int port, InetAddress addr)
          Initializes a new instance of DatagramSocket that binds to the specified local port and address.
DatagramPacket(byte[] buf, int offset, int length, InetAddress address, int port)
          Initializes a new instance of DatagramPacket for transmitting packets across the network.
DatagramPacket(byte[] buf, int length, InetAddress address, int port)
          Initializes a new instance of DatagramPacket for transmitting packets across the network.