From ea75e752f930df7b740a773294b997f46927c716 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 3 Aug 2015 14:34:01 -0500 Subject: Factor out xconnect(), plus some other small cleanups to telnet.c. --- lib/lib.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/lib.h') diff --git a/lib/lib.h b/lib/lib.h index 39212df0..8e6a8e2a 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -205,6 +205,8 @@ void tty_sigreset(int i); // net.c int xsocket(int domain, int type, int protocol); void xsetsockopt(int fd, int level, int opt, void *val, socklen_t len); +int xconnect(char *host, int port, int family, int socktype, int protocol, + int flags); // password.c int get_salt(char *salt, char * algo); -- cgit v1.2.3