SocketAddress

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

Use @see \io\vertx\jphp\core\net\SocketAddress::inetSocketAddress to create an inet socket address and @see \io\vertx\jphp\core\net\SocketAddress::domainSocketAddress to create a domain socket address

package

Default

Methods

__construct

__construct() 

Create a domain socket address.

domainSocketAddress( $arg0) : \io\vertx\jphp\core\net\SocketAddress
static

Arguments

$arg0

string

Response

\io\vertx\jphp\core\net\SocketAddress

the created socket address

host

host() : string

Response

string

the address host or {@code null} for a domain socket

Create a inet socket address, <code>host</code> must be non <code>null</code> and <code>port</code> must be between <code>0</code> and <code>65536</code>.

inetSocketAddress( $arg0,  $arg1) : \io\vertx\jphp\core\net\SocketAddress
static

Arguments

$arg0

integer

$arg1

string

Response

\io\vertx\jphp\core\net\SocketAddress

the created socket address

path

path() : string

Response

string

the address path or {@code null} for a inet socket

port

port() : integer

Response

integer

the address port or {@code -1} for a domain socket