Introduce tcp_connect().
[paraslash.git] / net.h
diff --git a/net.h b/net.h
index d42031e84b4f68c3ef79905f5c99c76b3d5ea3dc..6613d3f93d606cfe2daa81323298c86cefb670f7 100644 (file)
--- a/net.h
+++ b/net.h
 typedef void crypt_function(unsigned long len,
        const unsigned char *indata, unsigned char *outdata, void *private_data);
 
-#include <netdb.h> /* hostent */
-int get_host_info(char *host, struct hostent **ret);
+int tcp_connect(char *host, int port);
 int get_stream_socket(int domain);
-void init_sockaddr(struct sockaddr_in*, int, const struct hostent*);
 int send_buffer(int, const char *);
 int send_bin_buffer(int, const char *, size_t);
 __printf_2_3 int send_va_buffer(int fd, const char *fmt, ...);