#include "TMonitor.h"
#include "TProof.h"
#include "TSlave.h"
#include "TXSocketHandler.h"
#include "TXHandler.h"
#include "TList.h"
ClassImp(TXSocketHandler)
TXSocketHandler *TXSocketHandler::fgSocketHandler = 0;
Bool_t TXSocketHandler::Notify()
{
if (gDebug > 2)
TXSocket::DumpReadySock();
TXSocket *s = 0;
{ R__LOCKGUARD(&TXSocket::fgReadyMtx);
s = (TXSocket *) TXSocket::fgReadySock.Last();
if (gDebug > 2)
Info("Notify", "ready socket %p (input socket: %p)", s, fInputSock);
}
if (!s) {
Warning("Notify","socket-ready list is empty!");
return kTRUE;
}
s->fHandler->HandleInput();
return kTRUE;
}
TXSocketHandler *TXSocketHandler::GetSocketHandler(TFileHandler *h, TSocket *s)
{
if (!fgSocketHandler)
fgSocketHandler = new TXSocketHandler(h, s);
else
if (h && s)
fgSocketHandler->SetHandler(h, s);
return fgSocketHandler;
}
Last change: Wed Jun 25 08:55:22 2008
Last generated: 2008-06-25 08:55
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.