Make it compile, update for changes in channel structure.

--HG--
branch : agent-client
extra : convert_revision : 84676a98a0848224078a716b1292744a34e9d80c
This commit is contained in:
Matt Johnston
2009-07-01 04:53:17 +00:00
parent 709a3e75cf
commit c6582dbe37
11 changed files with 42 additions and 31 deletions

View File

@@ -215,6 +215,17 @@ struct serversession {
};
struct protocol {
int sock; /* read/write with this */
buffer * readbuf; /* Pending input data, should read a packet's worth */
struct Queue writequeue; /* A queue of output buffers to send */
void (*process)(); /* To be called after reading */
size_t (*bytes_to_read)();
void * state; /* protocol specific */
void (*protocol_closed)(); /* to be run when the sock gets closed */
void (*loop_handler)(); /* to run at end of each loop */
};
typedef enum {
KEX_NOTHING,
KEXINIT_RCVD,