From 2cabbf89f9f696a4786476a4eda7a59a1c16d486 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Tue, 2 Aug 2005 00:41:50 +0000 Subject: Remove port/service dualism and make everything a service. svn path=/trunk/; revision=4219 --- socket.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'socket.h') diff --git a/socket.h b/socket.h index d7c3ad25..d4fc947e 100644 --- a/socket.h +++ b/socket.h @@ -7,14 +7,8 @@ #ifndef SOCKET__ #define SOCKET__ -/* Create a new client socket; returns (FILE *)NULL on error */ -#ifdef INET6_ENABLE -int SockOpen(const char *host, const char *service, - const char *plugin); -#else /* INET6_ENABLE */ -int SockOpen(const char *host, int clientPort, - const char *plugin); -#endif /* INET6_ENABLE */ +/* Create a new client socket; returns -1 on error */ +int SockOpen(const char *host, const char *service, const char *plugin); /* Returns 1 if this socket is OK, 0 if it isn't select()able * on - probably because it's been closed. You should -- cgit v1.2.3