diff options
author | Matt Johnston <matt@ucc.asn.au> | 2004-08-11 17:26:47 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2004-08-11 17:26:47 +0000 |
commit | 09d419bc31dc598240ed03cdf9168d7d0ae6a98f (patch) | |
tree | dffe7a4d63c88753c9763cbbe584d3d95d1a95f2 /listener.h | |
parent | 97858f3dcef78891ed7befc02d073c3dd4d9be18 (diff) | |
download | dropbear-09d419bc31dc598240ed03cdf9168d7d0ae6a98f.tar.gz |
- A nice cleaner structure for tcp (acceptor) forwarding.
- still a checkpoint-ish commit
- sorted out listening on localhost only
Diffstat (limited to 'listener.h')
-rw-r--r-- | listener.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -11,7 +11,7 @@ struct Listener { int index; /* index in the array of listeners */ - void (*accepter)(struct Listener*, int sock); + void (*acceptor)(struct Listener*, int sock); void (*cleanup)(struct Listener*); int type; /* CHANNEL_ID_X11, CHANNEL_ID_AGENT, @@ -28,7 +28,7 @@ void set_listener_fds(fd_set * readfds); struct Listener* new_listener(int socks[], unsigned int nsocks, int type, void* typedata, - void (*accepter)(struct Listener*, int sock), + void (*acceptor)(struct Listener* listener, int sock), void (*cleanup)(struct Listener*)); struct Listener * get_listener(int type, void* typedata, |