diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2005-08-02 00:41:50 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2005-08-02 00:41:50 +0000 |
commit | 2cabbf89f9f696a4786476a4eda7a59a1c16d486 (patch) | |
tree | 83657a863dfb434ab4a07edcc90781db848b84e0 /socket.h | |
parent | aeec83fe86d05c61cc19ae8cb4cf07e959ab9ba1 (diff) | |
download | fetchmail-2cabbf89f9f696a4786476a4eda7a59a1c16d486.tar.gz fetchmail-2cabbf89f9f696a4786476a4eda7a59a1c16d486.tar.bz2 fetchmail-2cabbf89f9f696a4786476a4eda7a59a1c16d486.zip |
Remove port/service dualism and make everything a service.
svn path=/trunk/; revision=4219
Diffstat (limited to 'socket.h')
-rw-r--r-- | socket.h | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -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 |