Instance Property

port

The port on which the service is listening for connections.

Declaration

@property(readonly) NSInteger port;

Discussion

If the object was initialized by calling initWithDomain:type:name:port: (whether by your code or by a browser object), then the value was set when the object was first initialized.

If the object was initialized by calling initWithDomain:type:name:, the value of this property is not valid (-1) until after the service has successfully been resolved (when addresses is non-nil).

See Also

Using Network Services

- publish

Attempts to advertise the receiver’s on the network.

- publishWithOptions:

Attempts to advertise the receiver on the network, with the given options.

- resolve

Starts a resolve process for the service.

Deprecated
- resolveWithTimeout:

Starts a resolve process of a finite duration for the service.

- startMonitoring

Starts the monitoring of TXT-record updates for the receiver.

- stop

Halts a currently running attempt to publish or resolve a service.

- stopMonitoring

Stops the monitoring of TXT-record updates for the receiver.