NSStream.CreatePairWithSocketToHost Method

Definition

Creates a pair of NSInputStream and NSOutputStream connected to the specified host endpoint.

public static void CreatePairWithSocketToHost(System.Net.IPEndPoint endpoint, out Foundation.NSInputStream readStream, out Foundation.NSOutputStream writeStream);
public static void CreatePairWithSocketToHost(System.Net.IPEndPoint endpoint, out Foundation.NSInputStream? readStream, out Foundation.NSOutputStream? writeStream);
static member CreatePairWithSocketToHost : System.Net.IPEndPoint * NSInputStream * NSOutputStream -> unit

Parameters

endpoint
IPEndPoint

The IP endpoint to connect to.

readStream
NSInputStream

When this method returns, contains the created NSInputStream.

writeStream
NSOutputStream

When this method returns, contains the created NSOutputStream.

Applies to