- int oobinline, int nodelay, Plug plug);
-Socket new_listener(char *srcaddr, int port, Plug plug, int local_host_only);
+ int oobinline, int nodelay, Plug plug,
+ const Config *cfg);
+Socket new_listener(char *srcaddr, int port, Plug plug, int local_host_only,
+ const Config *cfg);
+SockAddr name_lookup(char *host, int port, char **canonicalname,
+ const Config *cfg);
+
+/* platform-dependent callback from new_connection() */
+/* (same caveat about addr as new_connection()) */
+Socket platform_new_connection(SockAddr addr, char *hostname,
+ int port, int privport,
+ int oobinline, int nodelay, Plug plug,
+ const Config *cfg);