|
||||
File indexing completed on 2025-01-18 10:12:21
0001 // @(#)root/net:$Id$ 0002 // Author: Fons Rademakers 19/1/2001 0003 0004 /************************************************************************* 0005 * Copyright (C) 1995-2001, Rene Brun and Fons Rademakers. * 0006 * All rights reserved. * 0007 * * 0008 * For the licensing terms see $ROOTSYS/LICENSE. * 0009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 0010 *************************************************************************/ 0011 0012 #ifndef ROOT_TPServerSocket 0013 #define ROOT_TPServerSocket 0014 0015 0016 ////////////////////////////////////////////////////////////////////////// 0017 // // 0018 // TPServerSocket // 0019 // // 0020 // This class implements parallel server sockets. A parallel server // 0021 // socket waits for requests to come in over the network. It performs // 0022 // some operation based on that request and then possibly returns a // 0023 // full duplex parallel socket to the requester. The actual work is // 0024 // done via the TSystem class (either TUnixSystem or TWinNTSystem). // 0025 // // 0026 ////////////////////////////////////////////////////////////////////////// 0027 0028 #include "TPSocket.h" 0029 #include "TServerSocket.h" 0030 0031 class TPServerSocket : public TServerSocket { 0032 0033 private: 0034 Int_t fTcpWindowSize; // size of tcp window (for window scaling) 0035 0036 TPServerSocket(const TPServerSocket &) = delete; 0037 void operator=(const TPServerSocket &) = delete; 0038 0039 public: 0040 TPServerSocket(Int_t port, Bool_t reuse = kFALSE, 0041 Int_t backlog = kDefaultBacklog, 0042 Int_t tcpwindowsize = -1); 0043 TPServerSocket(const char *service, Bool_t reuse = kFALSE, 0044 Int_t backlog = kDefaultBacklog, 0045 Int_t tcpwindowsize = -1); 0046 0047 virtual ~TPServerSocket() {} 0048 0049 TPSocket *Accept(UChar_t Opt = kSrvNoAuth) override; 0050 0051 ClassDefOverride(TPServerSocket,0) // Parallel server socket 0052 }; 0053 0054 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |