00001 // @(#)root/net:$Id: TPServerSocket.h 23091 2008-04-09 15:04:27Z rdm $ 00002 // Author: Fons Rademakers 19/1/2001 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2001, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TPServerSocket 00013 #define ROOT_TPServerSocket 00014 00015 00016 ////////////////////////////////////////////////////////////////////////// 00017 // // 00018 // TPServerSocket // 00019 // // 00020 // This class implements parallel server sockets. A parallel server // 00021 // socket waits for requests to come in over the network. It performs // 00022 // some operation based on that request and then possibly returns a // 00023 // full duplex parallel socket to the requester. The actual work is // 00024 // done via the TSystem class (either TUnixSystem or TWinNTSystem). // 00025 // // 00026 ////////////////////////////////////////////////////////////////////////// 00027 00028 #ifndef ROOT_TServerSocket 00029 #include "TServerSocket.h" 00030 #endif 00031 00032 class TPSocket; 00033 00034 00035 class TPServerSocket : public TServerSocket { 00036 00037 private: 00038 Int_t fTcpWindowSize; // size of tcp window (for window scaling) 00039 00040 TPServerSocket(const TPServerSocket &); // not implemented 00041 void operator=(const TPServerSocket &); // idem 00042 00043 public: 00044 TPServerSocket(Int_t port, Bool_t reuse = kFALSE, 00045 Int_t backlog = kDefaultBacklog, 00046 Int_t tcpwindowsize = -1); 00047 TPServerSocket(const char *service, Bool_t reuse = kFALSE, 00048 Int_t backlog = kDefaultBacklog, 00049 Int_t tcpwindowsize = -1); 00050 00051 virtual ~TPServerSocket() { } 00052 00053 virtual TSocket *Accept(UChar_t Opt = kSrvNoAuth); 00054 00055 ClassDef(TPServerSocket,0) // Parallel server socket 00056 }; 00057 00058 #endif