projects
/
dockapps
/
wmnotify.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NULL terminate strncpy destination string
[dockapps/wmnotify.git]
/
src
/
network.h
diff --git
a/src/network.h
b/src/network.h
index
e291aa2
..
779339d
100644
(file)
--- a/
src/network.h
+++ b/
src/network.h
@@
-1,4
+1,10
@@
-/* 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
#ifndef NETWORK_H
#define NETWORK_H 1
@@
-12,21
+18,18
@@
#include <stdlib.h>
#include <unistd.h>
#include <stdlib.h>
#include <unistd.h>
+/* 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 */