Szerkesztés

Megosztás a következőn keresztül:


CFSocket Constructors

Definition

Overloads

CFSocket()

Creates a socket for the address family family INET, socket type STREAM, and protocol TCP.

CFSocket(AddressFamily, SocketType, ProtocolType)

Creates a socket by specifying an address family, scoket type and protocol type dispatched on the Current.

CFSocket(AddressFamily, SocketType, ProtocolType, CFRunLoop)

Creates a socket by specifying an address family, socket type and protocol type with a specified run loop to dispatch on.

CFSocket()

Creates a socket for the address family family INET, socket type STREAM, and protocol TCP.

public CFSocket ();

Remarks

This constructor throws a CFSocketException if there is an error trying to create the socket.

Applies to

CFSocket(AddressFamily, SocketType, ProtocolType)

Creates a socket by specifying an address family, scoket type and protocol type dispatched on the Current.

public CFSocket (System.Net.Sockets.AddressFamily family, System.Net.Sockets.SocketType type, System.Net.Sockets.ProtocolType proto);
new CoreFoundation.CFSocket : System.Net.Sockets.AddressFamily * System.Net.Sockets.SocketType * System.Net.Sockets.ProtocolType -> CoreFoundation.CFSocket

Parameters

family
AddressFamily

Family type for the socket.

type
SocketType

Socket type to create.

proto
ProtocolType

Protocol type for the socket.

Remarks

This constructor throws a CFSocketException if there is an error trying to create the socket.

Applies to

CFSocket(AddressFamily, SocketType, ProtocolType, CFRunLoop)

Creates a socket by specifying an address family, socket type and protocol type with a specified run loop to dispatch on.

public CFSocket (System.Net.Sockets.AddressFamily family, System.Net.Sockets.SocketType type, System.Net.Sockets.ProtocolType proto, CoreFoundation.CFRunLoop loop);
new CoreFoundation.CFSocket : System.Net.Sockets.AddressFamily * System.Net.Sockets.SocketType * System.Net.Sockets.ProtocolType * CoreFoundation.CFRunLoop -> CoreFoundation.CFSocket

Parameters

family
AddressFamily

Family type for the socket.

type
SocketType

Socket type to create.

proto
ProtocolType

Protocol type for the socket.

loop
CFRunLoop

The run loop to which this CFSocket will be added as a source.

Remarks

This constructor throws a CFSocketException if there is an error trying to create the socket.

Applies to