Platforms to show: All Mac Windows Linux Cross-Platform

Back to CFSocketMBS class.

CFSocketMBS.Address as CFBinaryDataMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation Network MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The address of this socket.

(Read and Write computed property)

CFSocketMBS.ConnectToAddress(address as CFBinaryDataMBS, timeout as Double) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreFoundation Network MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Connects the socket to the given address.

Returns a socket error.

Some error codes:
kCFSocketSuccess = 0
kCFSocketError = -1
kCFSocketTimeout = -2

CFSocketMBS.Create as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreFoundation Network MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a new socket.

Some error codes:
kCFSocketSuccess = 0,
kCFSocketError = -1,
kCFSocketTimeout = -2

CFSocketMBS.Invalidate

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreFoundation Network MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Invalidates the socket.

CFSocketMBS.IsValid as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreFoundation Network MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Checks if the socket is valid.

CFSocketMBS.NativeSocketHandle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreFoundation Network MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The native socket handle.

CFSocketMBS.PeerAddress as CFBinaryDataMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreFoundation Network MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The peer address of this socket.

Returns nil on any error.

CFSocketMBS.SendData(data as CFBinaryDataMBS, timeout as Double) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreFoundation Network MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Sends data over the socket with a given timeout.

For convenience, a function is provided to send data using the socket with a timeout. The timeout will be used only if the specified value is positive.

Some error codes:
kCFSocketSuccess = 0
kCFSocketError = -1
kCFSocketTimeout = -2

The items on this page are in the following plugins: MBS MacCF Plugin.


The biggest plugin in space...