File: socket.C

package info (click to toggle)
saods9 8.6%2Brepack-5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 23,220 kB
  • sloc: tcl: 78,253; cpp: 71,015; ansic: 3,955; xml: 1,555; sh: 968; makefile: 183; perl: 68
file content (27 lines) | stat: -rw-r--r-- 428 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (C) 1999-2021
// 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