Share via


NWConnection Class

Definition

public class NWConnection : CoreFoundation.NativeObject
type NWConnection = class
    inherit NativeObject
Inheritance

Constructors

Name Description
NWConnection(NWEndpoint, NWParameters)

Properties

Name Description
CurrentPath
Description
Endpoint
Handle (Inherited from DisposableObject)
MaximumDatagramSize
Owns (Inherited from DisposableObject)
Parameters

Methods

Name Description
Batch(Action)
Cancel()
CancelCurrentEndpoint()
ClearHandle() (Inherited from DisposableObject)
Dispose() (Inherited from DisposableObject)
Dispose(Boolean) (Inherited from NativeObject)
Equals(Object) (Inherited from DisposableObject)
ForceCancel()
GetCheckedHandle() (Inherited from DisposableObject)
GetEstablishmentReport(DispatchQueue, Action<NWEstablishmentReport>)
GetHashCode() (Inherited from DisposableObject)
GetProtocolMetadata(NWProtocolDefinition)
GetProtocolMetadata<T>(NWProtocolDefinition)
InitializeHandle(NativeHandle) (Inherited from DisposableObject)
Receive(UInt32, UInt32, NWConnectionReceiveCompletion)
ReceiveData(UInt32, UInt32, NWConnectionReceiveDispatchDataCompletion)
ReceiveMessage(NWConnectionReceiveCompletion)
ReceiveMessageData(NWConnectionReceiveDispatchDataCompletion)
ReceiveMessageReadOnlyData(NWConnectionReceiveReadOnlySpanCompletion)
ReceiveReadOnlyData(UInt32, UInt32, NWConnectionReceiveReadOnlySpanCompletion)
Release() (Inherited from NativeObject)
Restart()
Retain() (Inherited from 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>)
SetViabilityChangeHandler(Action<Boolean>)

Set a handler that is called when data can be sent or received.

Start()

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to