org.mockftpserver.core.util
Class HostAndPort
java.lang.Object
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
|
Constructor Summary |
HostAndPort(InetAddress host,
int port)
Construct a new instance with the specified host and port |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
host
public InetAddress host
port
public int port
HostAndPort
public HostAndPort(InetAddress host,
int port)
- Construct a new instance with the specified host and port
- Parameters:
host - - the InetAddress hostport - - the port number
Copyright © 2014. All rights reserved.