NWListener.Create Method

Definition

Overloads

Create(NWParameters)

public static Network.NWListener? Create(Network.NWParameters parameters);
static member Create : Network.NWParameters -> Network.NWListener

Parameters

parameters
NWParameters

Returns

Applies to

Create(NWConnection, NWParameters)

public static Network.NWListener? Create(Network.NWConnection connection, Network.NWParameters parameters);
static member Create : Network.NWConnection * Network.NWParameters -> Network.NWListener

Parameters

connection
NWConnection
parameters
NWParameters

Returns

Applies to

Create(NWParameters, String)

Creates an NWListener instance from a launchd key.

public static Network.NWListener? Create(Network.NWParameters parameters, string launchd_key);
static member Create : Network.NWParameters * string -> Network.NWListener

Parameters

parameters
NWParameters

The parameters to use for the listener, including the protocols to use.

launchd_key
String

The name of the socket entry as specified in the launchd.plist.

Returns

A new NWListener instance, or null if not successful.

Applies to

Create(String, NWParameters)

public static Network.NWListener? Create(string port, Network.NWParameters parameters);
static member Create : string * Network.NWParameters -> Network.NWListener

Parameters

port
String
parameters
NWParameters

Returns

Applies to