Edit

Share via


CFStream.CreatePairWithSocketToHost Method

Definition

Overloads

CreatePairWithSocketToHost(IPEndPoint, CFReadStream, CFWriteStream)

Creates a reading and a writing CFStreams that are connected over TCP/IP to the specified endpoint.

CreatePairWithSocketToHost(String, Int32, CFReadStream, CFWriteStream)

Creates a reading and a writing CFStreams that are connected over TCP/IP to the specified host and port.

CreatePairWithSocketToHost(IPEndPoint, CFReadStream, CFWriteStream)

Creates a reading and a writing CFStreams that are connected over TCP/IP to the specified endpoint.

public static void CreatePairWithSocketToHost (System.Net.IPEndPoint endpoint, out CoreFoundation.CFReadStream readStream, out CoreFoundation.CFWriteStream writeStream);
static member CreatePairWithSocketToHost : System.Net.IPEndPoint *  *  -> unit

Parameters

endpoint
IPEndPoint

Endpoint to connect to.

readStream
CFReadStream

On return, contains a stream that can be used to read from that end point.

writeStream
CFWriteStream

On return, contains a stream that can be used to write to the end point.

Applies to

CreatePairWithSocketToHost(String, Int32, CFReadStream, CFWriteStream)

Creates a reading and a writing CFStreams that are connected over TCP/IP to the specified host and port.

public static void CreatePairWithSocketToHost (string host, int port, out CoreFoundation.CFReadStream readStream, out CoreFoundation.CFWriteStream writeStream);
static member CreatePairWithSocketToHost : string * int *  *  -> unit

Parameters

host
String

Hostname to connect to.

port
Int32

TCP port to connect to .

readStream
CFReadStream

On return, contains a stream that can be used to read from that end point.

writeStream
CFWriteStream

On return, contains a stream that can be used to write to the end point.

Applies to