Package apple.foundation.enums
Class NSNetServiceOptions
- java.lang.Object
-
- apple.foundation.enums.NSNetServiceOptions
-
public final class NSNetServiceOptions extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static longListenForConnectionsWhen passed to -publishWithOptions:, in addition to publishing the service, a TCP listener is started for both IPv4 and IPv6 on the port specified by the NSNetService.static longNoAutoRenameWhen passed to -publishWithOptions:, this suppresses the auto-renaming of an NSNetService in the event of a name collision.
-
-
-
Field Detail
-
NoAutoRename
public static final long NoAutoRename
When passed to -publishWithOptions:, this suppresses the auto-renaming of an NSNetService in the event of a name collision. The collision is reported to the instance's delegate on the -netService:didNotPublish: method.- See Also:
- Constant Field Values
-
ListenForConnections
public static final long ListenForConnections
When passed to -publishWithOptions:, in addition to publishing the service, a TCP listener is started for both IPv4 and IPv6 on the port specified by the NSNetService. If the listening port can't be opened, an error is reported using -netService:didNotPublish:. Specify a port number of zero to use a random port. When -netServiceDidPublish: is called, -port will return the actual listening port number. Since the listener only supports TCP, the publish will fail with NSNetServicesBadArgumentError if the NSNetService type does not end with "_tcp". New incoming connections will be delivered in the form of NSStreams via the -netService:didAcceptConnectionWithInputStream:outputStream: delegate method.- See Also:
- Constant Field Values
-
-