Port Class | Extending Qt Creator Manual

Extending Qt Creator Manual | Port

Extending Qt Creator Manual 4.6.0

# Port Class

(Utils::Port)

The Port class implements a wrapper around a 16 bit port number to be used in conjunction with IP addresses. More...

Header: | #include <Port>

- List of all members, including inherited members

## Public Functions

| Port()
| Port(quint16 port)
| Port(int port)
| Port(uint port)
bool | isValid() const
quint16 | number() const
QString | toString() const

## Detailed Description

The Port class implements a wrapper around a 16 bit port number to be used in conjunction with IP addresses.

## Member Function Documentation

### Port::Port()

Default constructs an instance of Port.

### Port::Port(quint16 port)

Default constructs an instance of Port.

### Port::Port(int port)

Default constructs an instance of Port.

### Port::Port(uint port)

Default constructs an instance of Port.

### bool Port::isValid() const

### quint16 Port::number() const

### QString Port::toString() const