CFStream.CreatePairWithPeerSocketSignature Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a reading and a writing CFStream to an endpoint that are configured to use a specific socket address family, a socket type and a protocol.
public static void CreatePairWithPeerSocketSignature (System.Net.Sockets.AddressFamily family, System.Net.Sockets.SocketType type, System.Net.Sockets.ProtocolType proto, System.Net.IPEndPoint endpoint, out CoreFoundation.CFReadStream readStream, out CoreFoundation.CFWriteStream writeStream);
static member CreatePairWithPeerSocketSignature : System.Net.Sockets.AddressFamily * System.Net.Sockets.SocketType * System.Net.Sockets.ProtocolType * System.Net.IPEndPoint * * -> unit
Parameters
- family
- AddressFamily
Address family to use.
- type
- SocketType
Desired socket type.
- proto
- ProtocolType
Desired protocol type.
- 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.
Remarks
Use this method when you need more control over the type of connection that you need. Unlike the other methods in CFStream which default to TCP/IP streams (which sets protocol to Internet, socket type to stream and protocol to TCP) with this method you can specify those parameter individually.