summaryrefslogtreecommitdiffstats
path: root/tksao/fitsy++/outsocket.h
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2016-10-27 18:59:29 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2016-10-27 18:59:29 (GMT)
commitd4d595fa7fb12903db9227d33d48b2b00120dbd1 (patch)
tree7d18365de0d6d1b29399b6a17c7eb01c2eb3ed49 /tksao/fitsy++/outsocket.h
parent949f96e29bfe0bd8710d775ce220e597064e2589 (diff)
downloadblt-d4d595fa7fb12903db9227d33d48b2b00120dbd1.zip
blt-d4d595fa7fb12903db9227d33d48b2b00120dbd1.tar.gz
blt-d4d595fa7fb12903db9227d33d48b2b00120dbd1.tar.bz2
Initial commit
Diffstat (limited to 'tksao/fitsy++/outsocket.h')
-rw-r--r--tksao/fitsy++/outsocket.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/tksao/fitsy++/outsocket.h b/tksao/fitsy++/outsocket.h
new file mode 100644
index 0000000..b7f9b8f
--- /dev/null
+++ b/tksao/fitsy++/outsocket.h
@@ -0,0 +1,38 @@
+// Copyright (C) 1999-2016
+// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
+// For conditions of distribution and use, see copyright notice in "copyright"
+
+#ifndef __outfitssocket_h__
+#define __outfitssocket_h__
+
+#include "outfits.h"
+#include "zlib.h"
+
+class OutFitsSocket : public virtual OutFitsStream {
+ private:
+ int id_;
+
+ public:
+ OutFitsSocket(int s);
+
+ int write(char*, size_t);
+};
+
+class OutFitsSocketGZ : public virtual OutFitsStream {
+ private:
+ int id_;
+ z_stream* stream_;
+ unsigned char* buf_;
+ unsigned long crc_;
+
+ int deflategz(int);
+ void putlong(unsigned long);
+
+ public:
+ OutFitsSocketGZ(int);
+ ~OutFitsSocketGZ();
+
+ int write(char*, size_t);
+};
+
+#endif