Remove sock_close and sock_shutdown 'portability' defs.
[citadel.git] / citadel / server / clientsocket.h
index cc275e1a53083dd16047b2c2add12ad42e079805..0fe45fa3e79cd927687a276f7cd1b3e67be2527d 100644 (file)
@@ -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