From: ben Date: Fri, 6 Jun 2003 10:42:14 +0000 (+0000) Subject: Move prototype for platform_new_connection() to a header file so the X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/48683854cb797009e8e72054eb61b7625b30af91 Move prototype for platform_new_connection() to a header file so the definitions can be checked against it. git-svn-id: svn://svn.tartarus.org/sgt/putty@3248 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/network.h b/network.h index 9a7a50cf..46ec6bb7 100644 --- a/network.h +++ b/network.h @@ -84,6 +84,12 @@ Socket new_listener(char *srcaddr, int port, Plug plug, int local_host_only, SockAddr name_lookup(char *host, int port, char **canonicalname, const Config *cfg); +/* platform-dependent callback from new_connection() */ +Socket platform_new_connection(SockAddr addr, char *hostname, + int port, int privport, + int oobinline, int nodelay, Plug plug, + const Config *cfg); + /* socket functions */ void sk_init(void); /* called once at program startup */ diff --git a/proxy.c b/proxy.c index ed25f1a4..4a2dd19c 100644 --- a/proxy.c +++ b/proxy.c @@ -349,11 +349,6 @@ SockAddr name_lookup(char *host, int port, char **canonicalname, return sk_namelookup(host, canonicalname); } -Socket platform_new_connection(SockAddr addr, char *hostname, - int port, int privport, - int oobinline, int nodelay, Plug plug, - const Config *cfg); - Socket new_connection(SockAddr addr, char *hostname, int port, int privport, int oobinline, int nodelay, Plug plug,