One Logo Pool Ball
Foundation · IOS API REFERENCE

NetService

class · iOS 2.0+ · Deprecated in iOS 100000.0 · SDK 27.1

class NetService

Members (27)

get · iOS 2.0+

errorCode

TypeScript
static get errorCode(): string
Swift declaration
class let errorCode: String
get · iOS 2.0+

errorDomain

TypeScript
static get errorDomain(): string
Swift declaration
class let errorDomain: String
static · iOS 2.0+ · Deprecated in iOS 100000.0

data

TypeScript
static data(txtDictionary: Record<string, ArrayBuffer>): ArrayBuffer
Swift declaration
class func data(fromTXTRecord txtDictionary: [String : Data]) -> Data
static · iOS 2.0+ · Deprecated in iOS 100000.0

dictionary

TypeScript
static dictionary(txtData: ArrayBuffer): Record<string, ArrayBuffer>
Swift declaration
class func dictionary(fromTXTRecord txtData: Data) -> [String : Data]
method · iOS 2.0+ · Deprecated in iOS 100000.0

txtRecordData

TypeScript
txtRecordData(): (ArrayBuffer) | null
Swift declaration
func txtRecordData() -> Data?
method · iOS 2.0+ · Deprecated in iOS 100000.0

getInputStream

TypeScript
getInputStream(): { $ret: boolean; $out: { "inputStream": (InputStream) | null; "outputStream": (OutputStream) | null } }
Swift declaration
func getInputStream(_ inputStream: UnsafeMutablePointer<InputStream?>?, outputStream: UnsafeMutablePointer<OutputStream?>?) -> Bool

Omit the output parameters from the call. The result contains $ret and $out, with inputStream, outputStream inside $out.

init · iOS 2.0+ · Deprecated in iOS 100000.0

init

TypeScript
static initDomainTypeName(domain: string, type: string, name: string): NetService
Swift declaration
convenience init(domain: String, type: String, name: String)
init · iOS 2.0+ · Deprecated in iOS 100000.0

init

TypeScript
static initDomainTypeNamePort(domain: string, type: string, name: string, port: number): NetService
Swift declaration
init(domain: String, type: String, name: String, port: Int32)
method · iOS 2.0+ · Deprecated in iOS 100000.0

publish

TypeScript
publish(): void
Swift declaration
func publish()
method · iOS 2.0+ · Deprecated in iOS 100000.0

publish

TypeScript
publishOptions(options?: NetService_Options): void
Swift declaration
func publish(options: NetService.Options = [])
method · iOS 2.0+ · Deprecated in iOS 100000.0

remove

TypeScript
remove(aRunLoop: RunLoop, mode: RunLoop_Mode): void
Swift declaration
func remove(from aRunLoop: RunLoop, forMode mode: RunLoop.Mode)
method · iOS 2.0+ · Deprecated in iOS 100000.0

resolve

TypeScript
resolve(timeout: number): void
Swift declaration
func resolve(withTimeout timeout: TimeInterval)
method · iOS 2.0+ · Deprecated in iOS 100000.0

schedule

TypeScript
schedule(aRunLoop: RunLoop, mode: RunLoop_Mode): void
Swift declaration
func schedule(in aRunLoop: RunLoop, forMode mode: RunLoop.Mode)
method · iOS 2.0+ · Deprecated in iOS 100000.0

setTXTRecord

TypeScript
setTXTRecord(recordData?: (ArrayBuffer) | null): boolean
Swift declaration
func setTXTRecord(_ recordData: Data?) -> Bool
method · iOS 2.0+ · Deprecated in iOS 100000.0

startMonitoring

TypeScript
startMonitoring(): void
Swift declaration
func startMonitoring()
method · iOS 2.0+ · Deprecated in iOS 100000.0

stop

TypeScript
stop(): void
Swift declaration
func stop()
method · iOS 2.0+ · Deprecated in iOS 100000.0

stopMonitoring

TypeScript
stopMonitoring(): void
Swift declaration
func stopMonitoring()
get · iOS 2.0+ · Deprecated in iOS 100000.0

addresses

TypeScript
get addresses(): (Array<ArrayBuffer>) | null
Swift declaration
var addresses: [Data]? { get }
get · iOS 2.0+ · Deprecated in iOS 100000.0

delegate

TypeScript
get delegate(): (SDKHandle) | null
Swift declaration
unowned(unsafe) var delegate: (any NetServiceDelegate)? { get set }
set · iOS 2.0+ · Deprecated in iOS 100000.0

delegate

TypeScript
set delegate(value: (Implements<NetServiceDelegate> | SDKHandle) | null)
Swift declaration
unowned(unsafe) var delegate: (any NetServiceDelegate)? { get set }
get · iOS 2.0+ · Deprecated in iOS 100000.0

domain

TypeScript
get domain(): string
Swift declaration
var domain: String { get }
get · iOS 2.0+ · Deprecated in iOS 100000.0

hostName

TypeScript
get hostName(): (string) | null
Swift declaration
var hostName: String? { get }
get · iOS 7.0+ · Deprecated in iOS 100000.0

includesPeerToPeer

TypeScript
get includesPeerToPeer(): boolean
Swift declaration
var includesPeerToPeer: Bool { get set }
set · iOS 7.0+ · Deprecated in iOS 100000.0

includesPeerToPeer

TypeScript
set includesPeerToPeer(value: boolean)
Swift declaration
var includesPeerToPeer: Bool { get set }
get · iOS 2.0+ · Deprecated in iOS 100000.0

name

TypeScript
get name(): string
Swift declaration
var name: String { get }
get · iOS 2.0+ · Deprecated in iOS 100000.0

port

TypeScript
get port(): number
Swift declaration
var port: Int { get }
get · iOS 2.0+ · Deprecated in iOS 100000.0

type

TypeScript
get type(): string
Swift declaration
var type: String { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

NetService.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All Foundation types →