NWConnection 类

定义

[ObjCRuntime.TV(12, 0)]
public class NWConnection : CoreFoundation.NativeObject
type NWConnection = class
    inherit NativeObject
继承
NWConnection
属性

构造函数

NWConnection(IntPtr, Boolean)
NWConnection(NWEndpoint, NWParameters)

属性

CurrentPath
Description
Endpoint
Handle (继承自 NativeObject)
MaximumDatagramSize
Parameters

方法

Batch(Action)
Cancel()
CancelCurrentEndpoint()
Dispose() (继承自 NativeObject)
Dispose(Boolean) (继承自 NativeObject)
ForceCancel()
GetProtocolMetadata(NWProtocolDefinition)
InitializeHandle(IntPtr) (继承自 NativeObject)
Receive(UInt32, UInt32, NWConnectionReceiveCompletion)
ReceiveData(UInt32, UInt32, NWConnectionReceiveDispatchDataCompletion)
ReceiveMessage(NWConnectionReceiveCompletion)
ReceiveMessageData(NWConnectionReceiveDispatchDataCompletion)
Release() (继承自 NativeObject)
Restart()
Retain() (继承自 NativeObject)
Send(Byte[], Int32, Int32, NWContentContext, Boolean, Action<NWError>)
Send(Byte[], NWContentContext, Boolean, Action<NWError>)
Send(DispatchData, NWContentContext, Boolean, Action<NWError>)
SendIdempotent(Byte[], NWContentContext, Boolean)
SendIdempotent(DispatchData, NWContentContext, Boolean)
SetBetterPathAvailableHandler(Action<Boolean>)
SetBooleanChangeHandler(Action<Boolean>)
SetPathChangedHandler(Action<NWPath>)
SetQueue(DispatchQueue)
SetStateChangeHandler(Action<NWConnectionState,NWError>)
Start()

适用于