aboutsummaryrefslogtreecommitdiff
path: root/src/socketstream.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/socketstream.h')
-rw-r--r--src/socketstream.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/socketstream.h b/src/socketstream.h
new file mode 100644
index 0000000..76d842a
--- /dev/null
+++ b/src/socketstream.h
@@ -0,0 +1,16 @@
+#ifndef SOCKETSTREAM_H
+#define SOCKETSTREAM_H
+
+#include "stream.h"
+
+typedef struct SocketStream SocketStream;
+
+struct SocketStream
+{
+ Stream base;
+ int sock;
+};
+
+int SocketStreamOpen(SocketStream *stream, int sock);
+
+#endif