aboutsummaryrefslogtreecommitdiffstats
path: root/socket.h
diff options
context:
space:
mode:
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.
*/