diff options
Diffstat (limited to 'socket.h')
-rw-r--r-- | socket.h | 15 |
1 files changed, 2 insertions, 13 deletions
@@ -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__ */ |