ssh_channel_data_callback typedef

ssh_channel_data_callback = Pointer<NativeFunction<Int32 Function(Int32, Pointer<ssh_channel>, Pointer<Void>, Int32, Int32, Pointer<Void>)>>

@brief SSH channel data callback. Called when data is available on a channel @param session Current session handler @param channel the actual channel @param data the data that has been read on the channel @param len the length of the data @param is_stderr is 0 for stdout or 1 for stderr @param userdata Userdata to be passed to the callback function. @returns number of bytes processed by the callee. The remaining bytes will be sent in the next callback message, when more data is available.

Implementation

typedef ssh_channel_data_callback = ffi.Pointer<
    ffi.NativeFunction<
        ffi.Int32 Function(
            ffi.Int32, ffi.Pointer<ssh_channel>, ffi.Pointer<ffi.Void>, ffi.Int32, ffi.Int32, ffi.Pointer<ffi.Void>)>>;