[root] / trunk / net / net / src / TPServerSocket.cxx Repository:
ViewVC logotype

Log of /trunk/net/net/src/TPServerSocket.cxx

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 43690 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 10 18:00:34 2012 UTC (2 years, 9 months ago) by pcanal
File length: 6446 byte(s)
Diff to previous 38918
Suppress warning: ordered comparison of pointer with integer zero

Revision 38918 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 19 09:08:59 2011 UTC (3 years, 9 months ago) by rdm
File length: 6446 byte(s)
Diff to previous 23091
fix Coverity issue.

Revision 23091 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 9 15:04:27 2008 UTC (6 years, 9 months ago) by rdm
File length: 6339 byte(s)
Copied from: trunk/net/src/TPServerSocket.cxx revision 23090
Diff to previous 20882
moving the follwing directories to "net":

alien, auth, glite, globusauth, krb5auth, ldap, monalisa, net, netx,
rootd, rpdutils, srputils, xrootd

Revision 20882 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 11:31:26 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/net/src/TPServerSocket.cxx
File length: 6339 byte(s)
Diff to previous 19826
Set property svn:eol-style LF on all source and Makefiles. This should avoid
problems with Win32 line endings ending up in the repository. All MS tools
support LF eols fine.

Revision 19826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:56:11 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/net/src/TPServerSocket.cxx
File length: 6339 byte(s)
Diff to previous 19825
imported svn:keywords Id property

Revision 19825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:49:10 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/net/src/TPServerSocket.cxx
File length: 6395 byte(s)
Diff to previous 12629
remove :$ from tag line

Revision 12629 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Sep 4 15:16:12 2005 UTC (9 years, 4 months ago) by brun
Original Path: trunk/net/src/TPServerSocket.cxx
File length: 6405 byte(s)
Diff to previous 12128
Fix coding conventions violations.

Revision 12128 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 23 06:24:27 2005 UTC (9 years, 7 months ago) by brun
Original Path: trunk/net/src/TPServerSocket.cxx
File length: 6398 byte(s)
Diff to previous 12123
From Constantin Loizides
Use global Mutex instead of class static member

Revision 12123 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 22 20:18:12 2005 UTC (9 years, 7 months ago) by brun
Original Path: trunk/net/src/TPServerSocket.cxx
File length: 6401 byte(s)
Diff to previous 12012
From Constantin Loizides

This patch implements:
- decentralized, automatic mutex initialization,
  see R__LOCKGUARD2 in TVirtualMutex
- PROOF parallel startup fixes
- more thread protection (in base, cont, meta, rest to be done)
- cleanups

From Eddy Offermann:
TString::Atoi and Atof are made const.

Revision 12012 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 10 17:49:47 2005 UTC (9 years, 7 months ago) by rdm
Original Path: trunk/net/src/TPServerSocket.cxx
File length: 6342 byte(s)
Diff to previous 10271
remove references to TMacSystem (does not exist anymore) and TWin32System
which actually is called TWinNTSystem.

Revision 10271 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 11 12:34:34 2004 UTC (10 years, 3 months ago) by rdm
Original Path: trunk/net/src/TPServerSocket.cxx
File length: 6435 byte(s)
Diff to previous 8239
From Gerri:
Description: patch to support authentication in TServerSocket for
general server application based on ROOT.

New files:

- net/src/DaemonUtils.cxx, net/inc/DaemonUtils.h
  wrappers around server-side functions implemented in
  rpdutils/src/rpdutils.cxx

- rpdutils/inc/rpddefs.h
  common definitions previously in rpdp.h

- tutorials/authserv.C, tutorials/authclient.C
  macros to test authentication between to remote ROOT
  sessions; see macro headers for instructions.

Patched files:

config:
 - rootrc.in
   New envs (SrvAuth.<xxx>) to steer authentication in TServerSocket,
   reflecting the command lines options to rootd/proofd

globusauth/src:
 - GlobusAuth.cxx
   Few changes to cope with new socket "type" (i.e. non-rootd or proofd
   related).

net:
 - Module.mk
   Drop DaemonUtils from the list of sources to be compiled;
   add definition of DAEMONUTILSO used in rpdutils/Module.Mk

net/inc
 - LinkDef.h
   Add pragmas for global variables kSrvAuth and kSrvNoAuth, new options
   to TServerSocket::Accept
- NetErrors.h
  Add new error code kErrBadRTag to indicate unsuccessful verification of
  the random tag associated to a token or password exchange
- TPServerSocket.h
  Add option to method Accept()
- TServerSocket.h ...
  Add option to method Accept() and a few methods, to set, display and
  modify the defaults.
  Add hooks to authentication code and cleanup code.
  Add list of accepted authentication for cleanup at closing.
  Add cleanup call in destructor.
  Add new method Authenticate().

net/src:
 - NetErrors.cxx
   Add string for new errord code kErrBadRTag.
 - TAuthenticate.cxx
   Increase the client protocol number for backward compatibility.
   Add support for new server socket "type" sock.
   Add send of kROOTD_BYE after failures to avoid warning messages
   on the server side.
   Add signature of random tags in methods ClearAuth() (for passwords)
   and AuthExists (for tokens)
 - TPServerSocket.cxx
   Add support for authentication in Accept()
 - TPSocket.cxx
   Add check on the server socket type in constructor
 - TServerSocket.cxx
   Add support for authentication in Accept().
   Implement new method Authenticate() to run authentication; this method
   loads dynamically the new library libSrvAuth.so .
   Implement methods to manage options.
   Add cleanup call in destructor.
 - TSocket.cxx
   Add support for new server socket type in CreateAuthSocket().
   Improved parsing of protocol in CreateAuthSocket().
   Improved description in CreateAuthSocket header.

proofd/src:
 - proofd.cxx
   Add check on the return code of RpdInitSession.

rootd/src:
 - rootd.cxx
   Add check on the return code of RpdInitSession.

rpdutils:
 - Module.mk
   Add rules to build libSrvAuth.so

rpdutils/inc:
 - rpdp.h
   Move const definitions in rpddefs.h
   Include rpddefs.h
   Add new signature for RpdIntiSession to be used in DaemonUtils.cxx
   Add new method RpdSetMethInitFlag to reset from DaemonUtils.cxx
   Add new signature for RpdCleanupAuthTab to clean the entry related
   to a specified token (called by TServerSocket).
   Add return codes to all the authentication-relatd functions.

rpdutils/src:
 - rpdutils.cxx
   Add static method 'rpdmemset' cleanup properly buffers used
   for passwords, avoiding compiler optimizations.
   Add static method 'rpdcrypt' to provide some protection when
   crypt is not available (preparation for some support for win32gdk)
   Add pre-compiler variable R__NOCRYPT to treat those cases.
   Add implementation of new methods RpdSetMethInitFlag(int) and
   RpdCleanupAuthTab(const char *).
   Fix small problem in RpdCleanupAuthTab(const char *, int, int)
   for option 'all' causing partial cleanup.
   Add generation/ transmission/ check of a random tag in RpdUser and
   RpdCheckAuthTab.
   Make all authentication functions to return a code instead of
   void; drop all 'exit' calls.
   Add implementation of special RpdInitSession signature for TServerSocket

Revision 8239 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 19 00:11:19 2004 UTC (10 years, 11 months ago) by rdm
Original Path: trunk/net/src/TPServerSocket.cxx
File length: 6156 byte(s)
Diff to previous 1486
Big authentication patch by Gerri:
General purpose:
Add support for 'authenticated' sockets on client side
and prepare for support of server authenticated sockets.

Main changes:

o TSocket, TPsocket:
  Added support of 'authenticated' sockets: authentication
  is delegated to TSocket by calling a static method
  CreateAuthSocket() returning a TSocket*.
  TSocket is now the only class calling TAuthenticate.

o TFTP, TNetFile, TSlave:
  modified to cope with new socket authentication scheme.

o TAuthDetails replaced by TSecContext containing:
  - local authentication info
  - expiration time
  - pointer to a security context for the method (if any)
  - information for cleanup (via TSecContextCleanup)

o A list of valid TSecContext has been added to TROOT,
  accessible via gROOT->GetListOfSecContexts().

o THostAuth rewritten using arrays to avoid multiple use
  of 'new'; functionality extended by the addition of
  several new methods.

o TAuthenticate:
  - Loading of information from .rootauthrc has been optimized;
    this allowed to simplify method signatures and drop several
    methods. Also collection and transmission of authentication
    information from TSlave to TProofServ gets simplified by the
    new scheme.
  - Added support for server dependent directives in .rootauthrc
  - Added check for changes in .rootauthrc each time a new
    TAuthenticate is instantiated, so that changes in the file
    are picked-up interactively.
  - Checking for an existing TSecContext (previously TAuthDetails)
    has been improved
  - Improved diagnostics for SshAuth
  - Enlarged support for authentication method indication in protocol:
       UsrPwd: rootup/proofup
          SRP: roots/proofs           (already supported)
         Krb5: rootk/proofk           (already supported)
       Globus: rootg/proofg
          SSH: rootsh/proofsh
       UigGid: rootug/proofug

o GlobusAuth.cxx, Krb5Auth.cxx, SRPAuth.cxx
  - Adapted to new class TSecContext
  - Added support for improved search for reusable TSecContext
  - Drop globals used to store established security contexts
    (saved in TSecContext) and related methods

o Automatic creation of <RootDir>/etc/system.rootauthrc from
  compilation flags; this has priority on old envs
  'Rootd.Authentication' and 'Proofd.Authentication' and is
  superseded by $HOME/.rootauthrc

o Automatic creation of <RootDir>/etc/system.authdaemonrc from
  compilation flags; this is superseded by $HOME/.rootauthrc

o rpdutils:
  - several almost identical methods moved in from rootd/proofd
  - several new methods to simplify manipulation of the
    authentication tab file
  - moved (and improved) check for running of sshd in RpdSshAuth,
    performed only in case of failure (to avoid spurious messages
    printed by sshd in /var/log/messages)

o proofd.cxx, rootd.cxx
  - increased protocol version
  - all initialization stuff (included authentication and
    login) done via RpdInitSession
  - postpone opening of parallels sockets after authentication
    (to solve problem of Kerberos/Globus authentication with
    parallel sockets)(rootd)
  - Fixed problem with kerberos and globus authentication in rootd
    with parallel sockets.

Revision 1486 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 29 00:03:55 2001 UTC (13 years, 11 months ago) by rdm
Original Path: trunk/net/src/TPServerSocket.cxx
File length: 5853 byte(s)
Diff to previous 1477
introduce proper inheritance: TPServerSocket derives from TServerSocket and
TPSocket derives from TSocket.

Revision 1477 - (view) (download) (as text) (annotate) - [select for diffs]
Added Fri Jan 26 16:55:08 2001 UTC (14 years ago) by rdm
Original Path: trunk/net/src/TPServerSocket.cxx
File length: 8240 byte(s)
two new classes supporting parallel socket operation. Using this technique
network transfers are striped over a set of parallel sockets thereby
dramatically increasing the network performance over fat pipes (grid like
infrastructure). Instead of waiting for an ACK before sending a next
fragment and thereby not filling up the pipe completely, the sockets
send fragments in parallel, keeping the pipe full. These two new classes
have the same interface as the standard TSocket and TServerSocket classes.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9