Interface SocketAddressResolver

All Known Implementing Classes:
SocketAddressResolver.Async, SocketAddressResolver.Sync

public interface SocketAddressResolver

Creates SocketAddress instances, returning them through a Promise.

  • Method Details

    • resolve

      void resolve(String host, int port, Promise<List<InetSocketAddress>> promise)
      Resolves via DNS the given host and port, within the connect timeout, returning a list of InetSocketAddress through the given Promise.
      Parameters:
      host - the host to resolve
      port - the port of the resulting socket address
      promise - the callback invoked when the resolution succeeds or fails