summaryrefslogtreecommitdiffstats
path: root/fitsy/socket.C
diff options
context:
space:
mode:
Diffstat (limited to 'fitsy/socket.C')
-rw-r--r--fitsy/socket.C27
1 files changed, 27 insertions, 0 deletions
diff --git a/fitsy/socket.C b/fitsy/socket.C
new file mode 100644
index 0000000..cbee2c4
--- /dev/null
+++ b/fitsy/socket.C
@@ -0,0 +1,27 @@
+// Copyright (C) 1999-2018
+// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
+// For conditions of distribution and use, see copyright notice in "copyright"
+
+#include "socket.h"
+
+#ifndef __WIN32
+
+FitsSocket::FitsSocket(int s, const char* ext)
+{
+ parse(ext);
+ if (!valid_)
+ return;
+
+ stream_ = s;
+
+ valid_ = stream_ ? 1 : 0;
+}
+
+#else
+
+FitsSocket::FitsSocket(int s, const char* ext)
+{
+ valid_ = 0;
+}
+
+#endif