Class SshdSocketAddress

java.lang.Object
java.net.SocketAddress
org.apache.sshd.common.util.net.SshdSocketAddress
All Implemented Interfaces:
Serializable

public class SshdSocketAddress extends SocketAddress

A simple socket address holding the host name and port number. The reason it does not extend InetSocketAddress is twofold:

  1. The InetSocketAddress performs a DNS resolution on the provided host name - which we don't want do use until we want to create a connection using this address (thus the toInetSocketAddress() call which executes this query

  2. If empty host name is provided we replace it with the any address of 0.0.0.0

See Also: