aboutsummaryrefslogtreecommitdiffstats
path: root/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'socket.h')
-rw-r--r--socket.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/socket.h b/socket.h
index a69f36bc..11d9e296 100644
--- a/socket.h
+++ b/socket.h
@@ -7,18 +7,7 @@
#ifndef SOCKET__
#define SOCKET__
-/*
-Create a new client socket
-returns (FILE *)NULL on error
-*/
-FILE *Socket(char *host, int clientPort);
-
-/*
-Get a string terminated by an '\n', delete any '\r' and the '\n'.
-Pass it a valid socket, a buffer for the string, and
-the length of the buffer (including the trailing \0)
-returns 0 for success.
-*/
-int SockGets(char *buf, int len, FILE *sockfp);
+/* Create a new client socket; returns (FILE *)NULL on error */
+FILE *sockopen(char *host, int clientPort);
#endif /* SOCKET__ */