xrootd
XrdClientProtocol.hh
Go to the documentation of this file.
1 #ifndef XRD_CPROTOCOL_H
2 #define XRD_CPROTOCOL_H
3 /******************************************************************************/
4 /* */
5 /* X r d C l i e n t P r o t o c o l . h h */
6 /* */
7 /* Author: Fabrizio Furano (INFN Padova, 2004) */
8 /* Adapted from TXNetFile (root.cern.ch) originally done by */
9 /* Alvise Dorigo, Fabrizio Furano */
10 /* INFN Padova, 2003 */
11 /* */
12 /* This file is part of the XRootD software suite. */
13 /* */
14 /* XRootD is free software: you can redistribute it and/or modify it under */
15 /* the terms of the GNU Lesser General Public License as published by the */
16 /* Free Software Foundation, either version 3 of the License, or (at your */
17 /* option) any later version. */
18 /* */
19 /* XRootD is distributed in the hope that it will be useful, but WITHOUT */
20 /* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
21 /* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */
22 /* License for more details. */
23 /* */
24 /* You should have received a copy of the GNU Lesser General Public License */
25 /* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */
26 /* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */
27 /* */
28 /* The copyright holder's institutional names and contributor's names may not */
29 /* be used to endorse or promote products derived from this software without */
30 /* specific prior written permission of the institution or contributor. */
31 /******************************************************************************/
32 
34 // //
35 // utility functions to deal with the protocol //
36 // //
38 
39 #include "XProtocol/XProtocol.hh"
40 
41 void clientMarshall(ClientRequest* str);
44 void clientUnmarshall(struct ServerResponseHeader* str);
45 
48 
50 
51 char *convertRequestIdToChar(kXR_unt16 requestid);
52 
53 void PutFilehandleInRequest(ClientRequest* str, char *fHandle);
54 
56 
59 
60 #endif
void clientMarshallReadAheadList(readahead_list *buf_list, kXR_int32 dlen)
void ServerInitHandShake2HostFmt(struct ServerInitHandShake *srh)
char * convertRequestIdToChar(kXR_unt16 requestid)
void PutFilehandleInRequest(ClientRequest *str, char *fHandle)
Definition: XProtocol.hh:668
void clientMarshall(ClientRequest *str)
void smartPrintServerHeader(struct ServerResponseHeader *hdr)
unsigned short kXR_unt16
Definition: XPtypes.hh:67
bool isRedir(struct ServerResponseHeader *ServerResponse)
void clientUnMarshallReadAheadList(readahead_list *buf_list, kXR_int32 dlen)
void smartPrintClientHeader(ClientRequest *hdr)
void ServerResponseHeader2NetFmt(struct ServerResponseHeader *srh)
char * convertRespStatusToChar(kXR_unt16 status)
Definition: XProtocol.hh:838
Definition: XProtocol.hh:709
void clientUnmarshall(struct ServerResponseHeader *str)
int kXR_int32
Definition: XPtypes.hh:89
Definition: XProtocol.hh:628
Definition: XProtocol.hh:868