yw_conn_queue

Name

yw_conn_queue -- queue packet to send it to peer later

Synopsis


     #include <yw/sock.h>
   

void yw_conn_queue(YwConnection *conn, YwPacket *pkt);

DESCRIPTION

This function queues packet specified in pkt in order to be send to peer along conn. yw_conn_queue_flush(3) should be used to actually send queued packets. Queueing packets serves efficiency of connection, i.e. when compression is used, they are compressed altogether, which works much better and faster then compressing them separatly. Each YwConnection has separate queue.

SEE ALSO

yw_conn_queue_and_free (3), yw_conn_queue_flush (3), yw_conn_send (3),

INFO

Generated from: send.c,v 1.8 2001/05/05 11:36:18 dobrek Exp.