TransmitterProtocol

public protocol TransmitterProtocol

A collection of methods used by a transmit operation to inform the transmitter of the events occuring on the interface.

  • An error occured during transmission.

    The transmitter has stopped, but the connection has not been closed or released.

    Declaration

    Swift

    func transmitterError(_ id: Int, _ message: String)

    Parameters

    id

    An id that is associated with the transfer. Only usefull if the transfer is scheduled in a dispatch queue.

    message

    A textual description of the error that occured.

  • A timeout occured during (or waiting for) transmission.

    The connection has not been closed or released.

    The data transfer is in an unknown state, i.e. it is uncertain how much data was transferred before this happenend.

    Declaration

    Swift

    func transmitterTimeout(_ id: Int)

    Parameters

    id

    An id that is associated with the transfer. Only usefull if the transfer is scheduled in a dispatch queue.

  • The connection was unexpectedly closed. It is not sure that the connection has been properly closed or deallocated.

    Probably by the other side or because of a parralel operation on a different thread.

    Declaration

    Swift

    func transmitterClosed(_ id: Int)

    Parameters

    id

    An id that is associated with the transfer. Only usefull if the transfer is scheduled in a dispatch queue.

  • The transmission has successfully concluded.

    Declaration

    Swift

    func transmitterReady(_ id: Int)

    Parameters

    id

    An id that is associated with the transfer. Only usefull if the transfer is scheduled in a dispatch queue.