X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fserver%2Fclientsocket.h;h=0fe45fa3e79cd927687a276f7cd1b3e67be2527d;hb=1a0c41a04e82938da86868ebe03883a323d8e4e0;hp=cc275e1a53083dd16047b2c2add12ad42e079805;hpb=1a0f9048548220d76bb42a5487b77bc635247d62;p=citadel.git diff --git a/citadel/server/clientsocket.h b/citadel/server/clientsocket.h index cc275e1a5..0fe45fa3e 100644 --- a/citadel/server/clientsocket.h +++ b/citadel/server/clientsocket.h @@ -1,14 +1,9 @@ // Header file for TCP client socket library // -// Copyright (c) 1987-2012 by the citadel.org team +// Copyright (c) 1987-2024 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. +// This program is open source software. Use, duplication, or disclosure +// is subject to the terms of the GNU General Public License version 3. int sock_connect(char *host, char *service); int sock_write(int *sock, const char *buf, int nbytes); @@ -19,14 +14,5 @@ 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 - */ +// Default timeout for client sessions #define CLIENT_TIMEOUT 600