summaryrefslogtreecommitdiff
path: root/vio/VioConnectorFd.h
diff options
context:
space:
mode:
Diffstat (limited to 'vio/VioConnectorFd.h')
-rw-r--r--vio/VioConnectorFd.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/vio/VioConnectorFd.h b/vio/VioConnectorFd.h
new file mode 100644
index 00000000000..da684df5f1b
--- /dev/null
+++ b/vio/VioConnectorFd.h
@@ -0,0 +1,19 @@
+/*
+ * Abstract connector. The file (or socket) descriptor has to be
+ * prepared.
+ */
+
+#ifdef __GNUC__
+#pragma interface /* gcc class implementation */
+#endif
+
+VIO_NS_BEGIN
+
+class VioConnectorFd
+{
+public:
+ virtual ~VioConnectorFd();
+ virtual Vio* connect(int fd) = 0;
+};
+
+VIO_NS_END