X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fclientsocket.h;h=f0d7c6a32591c2e99f5252588ff1178b03ca2ec5;hb=HEAD;hp=c430c1882aad99164fb682fb93dddea715cb8079;hpb=f4fcd4228633ddd1334f24f0a572d0667215082f;p=citadel.git diff --git a/citadel/clientsocket.h b/citadel/clientsocket.h deleted file mode 100644 index c430c1882..000000000 --- a/citadel/clientsocket.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Header file for TCP client socket library - * - * Copyright (c) 1987-2009 by the citadel.org team - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * 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. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -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