aboutsummaryrefslogtreecommitdiffstats
path: root/socket.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-01-16 03:29:34 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-01-16 03:29:34 +0000
commit2dd66a8c50f85adcd210b1d482ed1d5ef6e06142 (patch)
tree9aa0abbe1b7f3cc3e60e90f9c10fbba2dbeaed0f /socket.h
parente89983bc0f308b578d025cc84ef85d00ac9b97fb (diff)
downloadfetchmail-2dd66a8c50f85adcd210b1d482ed1d5ef6e06142.tar.gz
fetchmail-2dd66a8c50f85adcd210b1d482ed1d5ef6e06142.tar.bz2
fetchmail-2dd66a8c50f85adcd210b1d482ed1d5ef6e06142.zip
One step towards proper continuation handling.
svn path=/trunk/; revision=774
Diffstat (limited to 'socket.h')
-rw-r--r--socket.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/socket.h b/socket.h
index 6c93c634..f84f5b4d 100644
--- a/socket.h
+++ b/socket.h
@@ -19,6 +19,11 @@ returns buffer on success, NULL on failure.
char *SockGets(char *buf, int len, FILE *sockfp);
/*
+ * Peek at the next socket character without actually reading it.
+ */
+int SockPeek(FILE *sockfp);
+
+/*
Write a chunk of bytes to the socket (matches interface of fwrite).
Returns number of bytes successfully written.
*/