ssh_packet_callback typedef

ssh_packet_callback = Pointer<NativeFunction<Int32 Function(Int32, Int32, Int32, Pointer<Void>)>>

@brief Prototype for a packet callback, to be called when a new packet arrives @param session The current session of the packet @param type packet type (see ssh2.h) @param packet buffer containing the packet, excluding size, type and padding fields @param user user argument to the callback and are called each time a packet shows up @returns SSH_PACKET_USED Packet was parsed and used @returns SSH_PACKET_NOT_USED Packet was not used or understood, processing must continue

Implementation

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