org.mockftpserver.core.util
Class HostAndPort

java.lang.Object
  extended by org.mockftpserver.core.util.HostAndPort

public class HostAndPort
extends Object

A data-only (transfer) object representing a host (InetAddress) and port number that together uniquely identify an endpoint for a socket connection. This class contains two public properties: host (java.net.InetAddress) and port (int).

Version:
: $ - : $
Author:
Chris Mair

Field Summary
 InetAddress host
           
 int port
           
 
Constructor Summary
HostAndPort(InetAddress host, int port)
          Construct a new instance with the specified host and port
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

host

public InetAddress host

port

public int port
Constructor Detail

HostAndPort

public HostAndPort(InetAddress host,
                   int port)
Construct a new instance with the specified host and port

Parameters:
host - - the InetAddress host
port - - the port number


Copyright © 2014. All rights reserved.