From 275611fbaaa14824de69bccc68161d5ed195b745 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Fri, 20 Mar 2015 23:36:42 +0800 Subject: Make main socket nonblocking. Limit writequeue size. --- packet.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packet.h') 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(); -- cgit v1.2.3