Mercurial > dropbear
comparison packet.h @ 1074:10f198d4a308
Make main socket nonblocking. Limit writequeue size.
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 20 Mar 2015 23:36:42 +0800 |
parents | 01eea88963f3 |
children | 9169e4e7cbee |
comparison
equal
deleted
inserted
replaced
1073:88043f9d40bd | 1074:10f198d4a308 |
---|---|
26 | 26 |
27 #define DROPBEAR_PACKET_H_ | 27 #define DROPBEAR_PACKET_H_ |
28 | 28 |
29 #include "includes.h" | 29 #include "includes.h" |
30 #include "queue.h" | 30 #include "queue.h" |
31 #include "buffer.h" | |
31 | 32 |
32 void write_packet(); | 33 void write_packet(); |
33 void read_packet(); | 34 void read_packet(); |
34 void decrypt_packet(); | 35 void decrypt_packet(); |
35 void encrypt_packet(); | 36 void encrypt_packet(); |
37 | |
38 void writebuf_enqueue(buffer * writebuf, unsigned char packet_type); | |
36 | 39 |
37 void process_packet(); | 40 void process_packet(); |
38 | 41 |
39 void maybe_flush_reply_queue(); | 42 void maybe_flush_reply_queue(); |
40 typedef struct PacketType { | 43 typedef struct PacketType { |