summaryrefslogtreecommitdiffhomepage
path: root/listener.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-08-10 17:09:52 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-08-10 17:09:52 +0000
commita712baa8e566bfd8403a3e2bfdf350a0dc50ea9f (patch)
tree87dd64b7ca8331c29936a32aab69e9f09f63dccf /listener.h
parent254e8e34524db48e5ad73d26a923d20b03dd8bf3 (diff)
just checkpointing
--HG-- extra : convert_revision : fbbf404290f3fea3dfa9f6f53eba9389057e9044
Diffstat (limited to 'listener.h')
-rw-r--r--listener.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/listener.h b/listener.h
index bda24ff..c634ead 100644
--- a/listener.h
+++ b/listener.h
@@ -6,11 +6,12 @@
struct Listener {
- int sock;
+ int socks[DROPBEAR_MAX_SOCKS];
+ unsigned int nsocks;
int index; /* index in the array of listeners */
- void (*accepter)(struct Listener*);
+ void (*accepter)(struct Listener*, int sock);
void (*cleanup)(struct Listener*);
int type; /* CHANNEL_ID_X11, CHANNEL_ID_AGENT,
@@ -25,8 +26,9 @@ void listeners_initialise();
void handle_listeners(fd_set * readfds);
void set_listener_fds(fd_set * readfds);
-struct Listener* new_listener(int sock, int type, void* typedata,
- void (*accepter)(struct Listener*),
+struct Listener* new_listener(int socks[], unsigned int nsocks,
+ int type, void* typedata,
+ void (*accepter)(struct Listener*, int sock),
void (*cleanup)(struct Listener*));
struct Listener * get_listener(int type, void* typedata,