X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Fnetwork.h;h=779339db24018cc9eaf6b079789cbecd5077d5b1;hb=44915ef56ef12a7440032daaaec403d58fe1b20e;hp=e291aa22e706903517daeb7fca1fd231b543d2f8;hpb=eaca75aa6c133cc6ff3d707f7ae8dbfbe51a6d2a;p=dockapps%2Fwmnotify.git diff --git a/src/network.h b/src/network.h index e291aa2..779339d 100644 --- a/src/network.h +++ b/src/network.h @@ -1,4 +1,10 @@ -/* network.h */ +/* + * network.h + * + * Copyright (C) 2003 Hugo Villeneuve + * + * This file is released under the GPLv2 + */ #ifndef NETWORK_H #define NETWORK_H 1 @@ -12,21 +18,18 @@ #include #include +/* POP3 responses may be up to 512 characters long, including the terminating + CRLF. IMAP4 responses can be more than 1024 characters. */ +#define WMNOTIFY_BUFSIZE 10240 -int -SocketOpen( char *server_name, int port ); +int SocketOpen(char *server_name, int port); -int -ConnectionEstablish( char *server_name, int port ); +int ConnectionEstablish(char *server_name, int port); -int -ConnectionTerminate( void ); +int ConnectionTerminate(void); -int -WmnotifySendData( char *buffer, int size ); +int WmnotifySendData(char *buffer, int size); -int -WmnotifyGetResponse( char *buffer, int max_size ); +int WmnotifyGetResponse(char *buffer, int max_size); - -#endif /* NETWORK_H */ +#endif /* NETWORK_H */