Static Public Member Functions | |
| static TSocket * | CreateAuthSocket (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 TSocket * | CreateAuthSocket (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 TSecContext * | GetSecContext (const TSocket &s) |
| static Bool_t | IsAuthenticated (const TSocket &s) |
| static void | SetSecContext (TSocket &s, TSecContext *ctx) |
#include <TSocket.h>
|
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.
|
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.
|
static |
Definition at line 52 of file TSocket.cxx.
Definition at line 42 of file TSocket.cxx.
|
static |
Definition at line 47 of file TSocket.cxx.