summaryrefslogtreecommitdiffhomepage
path: root/packet.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2015-03-20 23:36:42 +0800
committerMatt Johnston <matt@ucc.asn.au>2015-03-20 23:36:42 +0800
commit275611fbaaa14824de69bccc68161d5ed195b745 (patch)
treea41f254aa307fb360efe3a1fe5699a62a35ebbf2 /packet.h
parenta070159cc5ed59df4d79f6d23c9ba87a3f50a7ec (diff)
Make main socket nonblocking. Limit writequeue size.
Diffstat (limited to 'packet.h')
-rw-r--r--packet.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/packet.h b/packet.h
index cd21fe0..6013b72 100644
--- a/packet.h
+++ b/packet.h
@@ -28,12 +28,15 @@
#include "includes.h"
#include "queue.h"
+#include "buffer.h"
void write_packet();
void read_packet();
void decrypt_packet();
void encrypt_packet();
+void writebuf_enqueue(buffer * writebuf, unsigned char packet_type);
+
void process_packet();
void maybe_flush_reply_queue();