diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2020-03-21 20:29:02 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2020-03-21 20:29:02 (GMT) |
commit | a004d413772c16e43004929efb3df2f36c53314c (patch) | |
tree | f635a49cb52ebff944062e7dd6d8833c14a0b40b /fitsy++/socket.C | |
parent | c8abfb35e0303f03f75d9fe74dac893b1767924c (diff) | |
download | blt-a004d413772c16e43004929efb3df2f36c53314c.zip blt-a004d413772c16e43004929efb3df2f36c53314c.tar.gz blt-a004d413772c16e43004929efb3df2f36c53314c.tar.bz2 |
libfitsy++
Diffstat (limited to 'fitsy++/socket.C')
-rw-r--r-- | fitsy++/socket.C | 27 |
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 |