Mercurial > dropbear
comparison queue.h @ 728:f27058078d61
Try using writev() for writing packets out to tcp
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 31 Mar 2013 23:15:35 +0800 |
parents | fe6bca95afa7 |
children | deed0571cacc |
comparison
equal
deleted
inserted
replaced
727:00bc3df3a9c3 | 728:f27058078d61 |
---|---|
34 | 34 |
35 struct Queue { | 35 struct Queue { |
36 | 36 |
37 struct Link* head; | 37 struct Link* head; |
38 struct Link* tail; | 38 struct Link* tail; |
39 unsigned int count; /* safety value */ | 39 unsigned int count; |
40 | 40 |
41 }; | 41 }; |
42 | 42 |
43 void initqueue(struct Queue* queue); | 43 void initqueue(struct Queue* queue); |
44 int isempty(struct Queue* queue); | 44 int isempty(struct Queue* queue); |