diff listener.h @ 63:dcc43965928f

- A nice cleaner structure for tcp (acceptor) forwarding. - still a checkpoint-ish commit - sorted out listening on localhost only
author Matt Johnston <matt@ucc.asn.au>
date Wed, 11 Aug 2004 17:26:47 +0000
parents 20563735e8b5
children e3adf4cf5465
line wrap: on
line diff
--- a/listener.h	Tue Aug 10 17:09:52 2004 +0000
+++ b/listener.h	Wed Aug 11 17:26:47 2004 +0000
@@ -11,7 +11,7 @@
 
 	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 @@
 
 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,