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 |
(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 |
Returns a socket error.
Some error codes:
| kCFSocketSuccess | = 0 |
| kCFSocketError | = -1 |
| kCFSocketTimeout | = -2 |
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | CoreFoundation Network | MBS MacCF Plugin | 3.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Some error codes:
| kCFSocketSuccess | = 0, |
| kCFSocketError | = -1, |
| kCFSocketTimeout | = -2 |
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | CoreFoundation Network | MBS MacCF Plugin | 3.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
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 |
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 |
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 |
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 |
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.