Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Deprecated::TSocketFriend Struct Reference

Definition at line 41 of file TSocket.h.

Static Public Member Functions

static TSocketCreateAuthSocket (const char *url, Int_t size=0, Int_t tcpwindowsize=-1, TSocket *s=nullptr, Int_t *err=nullptr)
 Creates a socket or a parallel socket and authenticates to the remote server.
 
static TSocketCreateAuthSocket (const char *user, const char *host, Int_t port, Int_t size=0, Int_t tcpwindowsize=-1, TSocket *s=nullptr, Int_t *err=nullptr)
 Creates a socket or a parallel socket and authenticates to the remote server specified in 'url' on remote 'port' as 'user'.
 
static TSecContextGetSecContext (const TSocket &s)
 
static Bool_t IsAuthenticated (const TSocket &s)
 
static void SetSecContext (TSocket &s, TSecContext *ctx)
 

#include <TSocket.h>

Member Function Documentation

◆ CreateAuthSocket() [1/2]

TSocket * ROOT::Deprecated::TSocketFriend::CreateAuthSocket ( const char * url,
Int_t size = 0,
Int_t tcpwindowsize = -1,
TSocket * opensock = nullptr,
Int_t * err = nullptr )
static

Creates a socket or a parallel socket and authenticates to the remote server.

url: [[proto][p][auth]://][user@]host[:port][/service]

where proto = "sockd", "rootd" indicates the type of remote server; if missing "sockd" is assumed ("sockd" indicates any remote server session using TServerSocket) [auth] = "up" or "k" to force UsrPwd or Krb5 authentication [port] = is the remote port number [service] = service name used to determine the port (for backward compatibility, specification of port as priority)

An already opened connection can be used by passing its socket in opensock.

If 'err' is defined, '*err' on return from a failed call contains an error code (see NetErrors.h).

Example:

TSocket::CreateAuthSocket("pk://qwerty@machine.fq.dn:5052",3)

creates an authenticated parallel socket of size 3 to a sockd server running on remote machine machine.fq.dn on port 5052; authentication will attempt protocol Kerberos first.

NB: may hang if the remote server is not of the correct type; at present TSocket has no way to find out the type of the remote server automatically

Returns pointer to an authenticated socket or 0 if creation or authentication is unsuccessful.

Definition at line 1294 of file TSocket.cxx.

◆ CreateAuthSocket() [2/2]

TSocket * ROOT::Deprecated::TSocketFriend::CreateAuthSocket ( const char * user,
const char * url,
Int_t port,
Int_t size = 0,
Int_t tcpwindowsize = -1,
TSocket * opensock = nullptr,
Int_t * err = nullptr )
static

Creates a socket or a parallel socket and authenticates to the remote server specified in 'url' on remote 'port' as 'user'.

url: [[proto][auth]://]host

where proto = "sockd", "rootd" indicates the type of remote server if missing "sockd" is assumed ("sockd" indicates any remote server session using TServerSocket) [auth] = "up" or "k" to force UsrPwd or Krb5 authentication

An already opened connection can be used by passing its socket in opensock.

If 'err' is defined, '*err' on return from a failed call contains an error code (see NetErrors.h).

Example:

TSocket::CreateAuthSocket("qwerty","pk://machine.fq.dn:5052",3)

creates an authenticated parallel socket of size 3 to a sockd server running on remote machine machine.fq.dn on port 5052; authentication will attempt protocol Kerberos first.

NB: may hang if the remote server is not of the correct type; at present TSocket has no way to find out the type of the remote server automatically

Returns pointer to an authenticated socket or 0 if creation or authentication is unsuccessful.

Definition at line 1431 of file TSocket.cxx.

◆ GetSecContext()

ROOT::Deprecated::TSecContext * ROOT::Deprecated::TSocketFriend::GetSecContext ( const TSocket & s)
static

Definition at line 52 of file TSocket.cxx.

◆ IsAuthenticated()

Bool_t ROOT::Deprecated::TSocketFriend::IsAuthenticated ( const TSocket & s)
static

Definition at line 42 of file TSocket.cxx.

◆ SetSecContext()

void ROOT::Deprecated::TSocketFriend::SetSecContext ( TSocket & s,
TSecContext * ctx )
static

Definition at line 47 of file TSocket.cxx.


The documentation for this struct was generated from the following files: