-/* network.h */
+/*
+ * network.h
+ *
+ * Copyright (C) 2003 Hugo Villeneuve <hugo@hugovil.com>
+ *
+ * This file is released under the GPLv2
+ */
#ifndef NETWORK_H
#define NETWORK_H 1
#include <stdlib.h>
#include <unistd.h>
-
/* POP3 responses may be up to 512 characters long, including the terminating
- CRLF. */
-#define WMNOTIFY_BUFSIZE 1024
-
-
-int
-SocketOpen( char *server_name, int port );
+ CRLF. IMAP4 responses can be more than 1024 characters. */
+#define WMNOTIFY_BUFSIZE 10240
-int
-ConnectionEstablish( char *server_name, int port );
+int SocketOpen(char *server_name, int port);
-int
-ConnectionTerminate( void );
+int ConnectionEstablish(char *server_name, int port);
-int
-WmnotifySendData( char *buffer, int size );
+int ConnectionTerminate(void);
-int
-WmnotifyGetResponse( char *buffer, int max_size );
+int WmnotifySendData(char *buffer, int size);
+int WmnotifyGetResponse(char *buffer, int max_size);
-#endif /* NETWORK_H */
+#endif /* NETWORK_H */