#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::fgPipe.DumpReadySock();
TXSocket *s = TXSocket::fgPipe.GetLastReady();
if (gDebug > 2)
Info("Notify", "ready socket %p (%s) (input socket: %p)",
s, (s ? s->GetTitle() : "***undef***"), 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: Mon Dec 8 10:01:01 2008
Last generated: 2008-12-08 10:01
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.