00001 // @(#)root/proofx:$Id: TXHandler.h 30815 2009-10-20 13:49:22Z rdm $ 00002 // Author: G. Ganis Mar 2006 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TXHandler 00013 #define ROOT_TXHandler 00014 00015 ////////////////////////////////////////////////////////////////////////// 00016 // // 00017 // TXHandler // 00018 // // 00019 // Handler of asynchronous events for xproofd sockets. // 00020 // Classes which need this should inherit from it and overload the // 00021 // relevant methods. // 00022 // // 00023 ////////////////////////////////////////////////////////////////////////// 00024 00025 #ifndef ROOT_Rtypes 00026 #include "Rtypes.h" 00027 #endif 00028 00029 00030 class TXHandler { 00031 00032 public: 00033 TXHandler() { } 00034 virtual ~TXHandler() { } 00035 00036 virtual Bool_t HandleInput(const void *in = 0); 00037 virtual Bool_t HandleError(const void *in = 0); 00038 00039 ClassDef(TXHandler, 0) //Template class for handling of async events 00040 }; 00041 00042 #endif