JSAddress


An Address represents a host/port pair. It is a simple object containing only two properties. When read as a string it returns the address as:

Host:Port

It may also be assigned to as a string; in which case the host will be everything up to the first colon and the port after the colon. If no port is specified 80 is assumed.

Properties

host

The host name.

port

The port.

Example

// Set the hostname
addr.host = "www.somehost.com";