io.vertx.core.net

## Interface SocketAddress

-     public interface SocketAddress

  The address of a socket, an inet socket address or a domain socket address.

  Use `inetSocketAddress(int, String)` to create an inet socket address and `domainSocketAddress(String)` to create a domain socket address
  Author:
    Tim Fox

- - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `static SocketAddress` | `domainSocketAddress(String path)` Create a domain socket address.
    `String` | `host()`
    `static SocketAddress` | `inetSocketAddress(int port, String host)` Create a inet socket address, `host` must be non `null` and `port` must be between `0` and `65536`.
    `String` | `path()`
    `int` | `port()`

- - ### Method Detail

    - #### inetSocketAddress

          static SocketAddress inetSocketAddress(int port,
                                                 String host)

      Create a inet socket address, `host` must be non `null` and `port` must be between `0` and `65536`.
      Parameters:
        `port` - the address port
        `host` - the address host
      Returns:
        the created socket address

    - #### domainSocketAddress

          static SocketAddress domainSocketAddress(String path)

      Create a domain socket address.
      Parameters:
        `path` - the address path
      Returns:
        the created socket address

    - #### host

          String host()

      Returns:
        the address host or `null` for a domain socket

    - #### port

          int port()

      Returns:
        the address port or `-1` for a domain socket

    - #### path

          String path()

      Returns:
        the address path or `null` for a inet socket

Copyright © 2018 Eclipse. All rights reserved.