public protocol InterfaceAccess
The i/o functions that glue a Connection object to an interface.
An id that can be used for logging purposes and will differentiate between interfaces on a temporary basis.
It should be guaranteed that no two interfaces with the same logId are active at the same time.
var logId: Int32
Closes the connection.
NoteData transfers will be aborted if running and may result in error messages on the receiver/transmitter protocols.
mutating func close()
Transfers the data in the buffer to the peer.
The buffer with data to be transferred.
The timeout for the transfer.
The receiver for the TransmitterProtocol method calls (if present).
The closure that is invoked after partial transfers (if any).
See the TransferResult definition.
Starts a receiver loop that will call the operations as defined in the ReceiverProtocol on the receiver.
There will be no return from this function until a ReceiverProtocol method singals so, or until an error occurs.
The size of the buffer to create in bytes.
The duration for the loop.
The receiver for the ReceiverProtocol method calls (if present).