X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fclientsocket.h;h=f0d7c6a32591c2e99f5252588ff1178b03ca2ec5;hb=HEAD;hp=cc275e1a53083dd16047b2c2add12ad42e079805;hpb=7202fdfff37c9518ff93bb65fd8d85956316ee71;p=citadel.git diff --git a/citadel/clientsocket.h b/citadel/clientsocket.h deleted file mode 100644 index cc275e1a5..000000000 --- a/citadel/clientsocket.h +++ /dev/null @@ -1,32 +0,0 @@ -// Header file for TCP client socket library -// -// Copyright (c) 1987-2012 by the citadel.org team -// -// This program is open source software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License version 3. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -int sock_connect(char *host, char *service); -int sock_write(int *sock, const char *buf, int nbytes); -int sock_write_timeout(int *sock, const char *buf, int nbytes, int timeout); -int ml_sock_gets(int *sock, char *buf, int nSec); -int sock_getln(int *sock, char *buf, int bufsize); -int CtdlSockGetLine(int *sock, StrBuf *Target, int nSec); -int sock_puts(int *sock, char *buf); -int socket_read_blob(int *Socket, StrBuf * Target, int bytes, int timeout); - - -/* - * This looks dumb, but it's being done for future portability - */ -#define sock_close(sock) close(sock) -#define sock_shutdown(sock, how) shutdown(sock, how) - -/* - * Default timeout for client sessions - */ -#define CLIENT_TIMEOUT 600