#include "TXUnixSocket.h"
#include "XrdProofPhyConn.h"
ClassImp(TXUnixSocket)
TXUnixSocket::TXUnixSocket(const char *url,
                           Int_t psid, Char_t capver, TXHandler *handler)
             : TXSocket(0,'i',psid,capver,0,-1,handler)
{
   
   
   if (url) {
      
      fConn = new XrdProofPhyConn(url, psid, capver, this);
      if (!(fConn->IsValid())) {
         Error("TXUnixSocket", "severe error occurred while opening a connection"
                               " to server [%s]", fUrl.Data());
         return;
      }
      
      fUser = fConn->fUser.c_str();
      fHost = fConn->fHost.c_str();
      fPort = fConn->fPort;
      
      TSocket::fUrl = fConn->fUrl.GetUrl().c_str();
      
      fPid = gSystem->GetPid();
   }
}
Last update: Thu Jan 17 09:05:38 2008
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.