Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
XProofProtUtils.h
Go to the documentation of this file.
1 // @(#)root/proofd:$Id$
2 // Author: G. Ganis June 2005
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_XProofProtUtils
13 #define ROOT_XProofProtUtils
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // XProofProtUtils.h //
18 // //
19 // Authors: G. Ganis, CERN 2005 //
20 // //
21 // Utility functions prototypes for client-to-server //
22 // //
23 //////////////////////////////////////////////////////////////////////////
24 
25 namespace XPD {
26 
27  int clientMarshall(XPClientRequest* str);
28  void clientUnmarshall(struct ServerResponseHeader* str);
29  void ServerResponseHeader2NetFmt(struct ServerResponseHeader *srh);
30  void ServerInitHandShake2HostFmt(struct ServerInitHandShake *srh);
31  char *convertRequestIdToChar(kXR_int16 requestid);
32  char *convertRespStatusToChar(kXR_int16 status);
33  void smartPrintClientHeader(XPClientRequest* hdr);
34  void smartPrintServerHeader(struct ServerResponseHeader* hdr);
35 
36 } // namespace XPD
37 
38 #endif