Super class: CFObjectMBS
|Type||Topic||Plugin||Version||macOS||Windows||Linux||Console & Web||iOS|
|class||CoreFoundation Network||MBS MacCF Plugin||3.3||Yes||No||No||Yes, macOS only||No|
A CFSocket contains a native socket within a structure that can be used to read from the socket in the background and make the data thus read available using a runloop source.
Addresses are stored as CFDatas containing a struct sockaddr
appropriate for the protocol family; make sure that all fields are
filled in properly when passing in an address.
Some error codes:
- event Callback(reason as Integer, address as CFBinaryDataMBS, data as memoryblock)
- property Address as CFBinaryDataMBS
- 7 methods
Super class CFObjectMBS
- 5 properties
- 8 methods
- shared method NewCFObject(handle as Integer) as CFObjectMBS
This class has no sub classes.
Some useful global functions for this class:
- CFStreamCreatePairWithSocketMBS(TheSocket as CFSocketMBS, readstream as CFReadStreamMBS, writestream as CFWriteStreamMBS)
The items on this page are in the following plugins: MBS MacCF Plugin.
MBS Xojo Plugins