X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Fnetwork.h;h=f1fdc1b7bb1bfa9d0c1dd56b919eb2d831b6586b;hb=01555cb56d0c00242817f0da62f2cab6c99c466e;hp=19a9f2c83c81fa9866cc20d74dd57f38e3abeac5;hpb=db28d5c6f7928b707bffa193ad93dfa7556ab0ad;p=dockapps%2Fwmnotify.git diff --git a/src/network.h b/src/network.h index 19a9f2c..f1fdc1b 100644 --- a/src/network.h +++ b/src/network.h @@ -1,4 +1,22 @@ -/* network.h */ +/* + * network.h + * + * Copyright (C) 2003 Hugo Villeneuve + * + * 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 2 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ #ifndef NETWORK_H #define NETWORK_H 1 @@ -12,11 +30,9 @@ #include #include - /* POP3 responses may be up to 512 characters long, including the terminating - CRLF. */ -#define WMNOTIFY_BUFSIZE 1024 - + CRLF. IMAP4 responses can be more than 1024 characters. */ +#define WMNOTIFY_BUFSIZE 10240 int SocketOpen( char *server_name, int port ); @@ -33,5 +49,4 @@ WmnotifySendData( char *buffer, int size ); int WmnotifyGetResponse( char *buffer, int max_size ); - #endif /* NETWORK_H */