ROOT  6.06/09
Reference Guide
TPServerSocket.h
Go to the documentation of this file.
1 // @(#)root/net:$Id$
2 // Author: Fons Rademakers 19/1/2001
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2001, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TPServerSocket
13 #define ROOT_TPServerSocket
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TPServerSocket //
19 // //
20 // This class implements parallel server sockets. A parallel server //
21 // socket waits for requests to come in over the network. It performs //
22 // some operation based on that request and then possibly returns a //
23 // full duplex parallel socket to the requester. The actual work is //
24 // done via the TSystem class (either TUnixSystem or TWinNTSystem). //
25 // //
26 //////////////////////////////////////////////////////////////////////////
27 
28 #ifndef ROOT_TServerSocket
29 #include "TServerSocket.h"
30 #endif
31 
32 class TPSocket;
33 
34 
35 class TPServerSocket : public TServerSocket {
36 
37 private:
38  Int_t fTcpWindowSize; // size of tcp window (for window scaling)
39 
40  TPServerSocket(const TPServerSocket &); // not implemented
41  void operator=(const TPServerSocket &); // idem
42 
43 public:
44  TPServerSocket(Int_t port, Bool_t reuse = kFALSE,
45  Int_t backlog = kDefaultBacklog,
46  Int_t tcpwindowsize = -1);
47  TPServerSocket(const char *service, Bool_t reuse = kFALSE,
48  Int_t backlog = kDefaultBacklog,
49  Int_t tcpwindowsize = -1);
50 
51  virtual ~TPServerSocket() { }
52 
53  virtual TSocket *Accept(UChar_t Opt = kSrvNoAuth);
54 
55  ClassDef(TPServerSocket,0) // Parallel server socket
56 };
57 
58 #endif
TPServerSocket(const TPServerSocket &)
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
const Bool_t kFALSE
Definition: Rtypes.h:92
#define ClassDef(name, id)
Definition: Rtypes.h:254
const UChar_t kSrvNoAuth
Definition: TServerSocket.h:42
virtual ~TPServerSocket()
void operator=(const TPServerSocket &)
unsigned char UChar_t
Definition: RtypesCore.h:34
virtual TSocket * Accept(UChar_t Opt=kSrvNoAuth)
Accept a connection on a parallel server socket.