int len; int backlog; len = ssh2_pkt_construct(ssh, pkt); backlog = sk_write(ssh->s, (char *)pkt->data, len); if (backlog > SSH_MAX_BACKLOG) ssh_throttle_all(ssh, 1, backlog); ssh_free_packet(pkt);
if (ssh->queueing) ssh2_pkt_queue(ssh, pkt); else ssh2_pkt_send_noqueue(ssh, pkt);
static void ssh2_pkt_send(Ssh ssh, struct Packet *pkt){    int len;    int backlog;    len = ssh2_pkt_construct(ssh, pkt);    backlog = sk_write(ssh->s, (char *)pkt->data, len);    if (backlog > SSH_MAX_BACKLOG)	ssh_throttle_all(ssh, 1, backlog);    ssh_free_packet(pkt);}