ROOT logo
// $Id: SSocket.h 2715 2012-04-05 17:25:48Z matevz $

// Copyright (C) 1999-2008, Matevz Tadel. All rights reserved.
// This file is part of GLED, released under GNU General Public License version 2.
// For the licensing terms see $GLEDSYS/LICENSE or http://www.gnu.org/.

#ifndef GledCore_SSocket_H
#define GledCore_SSocket_H

#include "Gled/GMutex.h"
#include "TSocket.h"

class SSocket : public TSocket
{
  friend class SServerSocket;

protected:
  GMutex   mMutex;
  Bool_t   mClosedDown;

public:
  SSocket() :
    TSocket(), mClosedDown(false) {}
  SSocket(TInetAddress address, const char *service, Int_t tcpwindowsize = -1) :
    TSocket(address, service, tcpwindowsize), mClosedDown(false) {}
  SSocket(TInetAddress address, Int_t port, Int_t tcpwindowsize = -1) :
    TSocket(address, port, tcpwindowsize), mClosedDown(false) {}
  SSocket(const char *host, const char *service, Int_t tcpwindowsize = -1) :
    TSocket(host, service, tcpwindowsize), mClosedDown(false) {}
  SSocket(const char *host, Int_t port, Int_t tcpwindowsize = -1) :
    TSocket(host, port, tcpwindowsize), mClosedDown(false) {}
  SSocket(const char *sockpath) :
    TSocket(sockpath), mClosedDown(false) {}
  SSocket(Int_t descriptor) :
    TSocket(descriptor), mClosedDown(false) {}
  SSocket(Int_t descriptor, const char *sockpath) :
    TSocket(descriptor, sockpath), mClosedDown(false) {}
  SSocket(const SSocket &s) :
    TSocket(s), mClosedDown(s.mClosedDown) {}
  virtual ~SSocket() {}

  virtual void Close(Option_t *opt="");

  ClassDef(SSocket, 0);
}; // endclass SSocket

#endif
 SSocket.h:1
 SSocket.h:2
 SSocket.h:3
 SSocket.h:4
 SSocket.h:5
 SSocket.h:6
 SSocket.h:7
 SSocket.h:8
 SSocket.h:9
 SSocket.h:10
 SSocket.h:11
 SSocket.h:12
 SSocket.h:13
 SSocket.h:14
 SSocket.h:15
 SSocket.h:16
 SSocket.h:17
 SSocket.h:18
 SSocket.h:19
 SSocket.h:20
 SSocket.h:21
 SSocket.h:22
 SSocket.h:23
 SSocket.h:24
 SSocket.h:25
 SSocket.h:26
 SSocket.h:27
 SSocket.h:28
 SSocket.h:29
 SSocket.h:30
 SSocket.h:31
 SSocket.h:32
 SSocket.h:33
 SSocket.h:34
 SSocket.h:35
 SSocket.h:36
 SSocket.h:37
 SSocket.h:38
 SSocket.h:39
 SSocket.h:40
 SSocket.h:41
 SSocket.h:42
 SSocket.h:43
 SSocket.h:44
 SSocket.h:45
 SSocket.h:46
 SSocket.h:47