28sftp_packet sftp_packet_read(sftp_session sftp);
29int sftp_packet_write(sftp_session sftp, uint8_t type, ssh_buffer payload);
30void sftp_packet_free(sftp_packet packet);
31int buffer_add_attributes(ssh_buffer buffer, sftp_attributes attr);
32sftp_attributes sftp_parse_attr(sftp_session session,
44int sftp_reply_version(sftp_client_message client_msg);
55int sftp_decode_channel_data_to_packet(sftp_session sftp,
void *data, uint32_t len);
57void sftp_set_error(sftp_session sftp,
int errnum);
59void sftp_message_free(sftp_message msg);
61int sftp_read_and_dispatch(sftp_session sftp);
63sftp_message sftp_dequeue(sftp_session sftp, uint32_t
id);
70static inline uint32_t sftp_get_new_id(sftp_session session)
72 return ++session->id_counter;
75sftp_status_message parse_status_msg(sftp_message msg);
77void status_msg_free(sftp_status_message status);