xrootd
|
00001 #ifndef _CMS_TALK_H 00002 #define _CMS_TALK_H 00003 /******************************************************************************/ 00004 /* */ 00005 /* X r d C m s T a l k . h h */ 00006 /* */ 00007 /* (c) 2007 by the Board of Trustees of the Leland Stanford, Jr., University */ 00008 /* All Rights Reserved */ 00009 /* Produced by Andrew Hanushevsky for Stanford University under contract */ 00010 /* DE-AC02-76-SFO0515 with the Department of Energy */ 00011 /******************************************************************************/ 00012 00013 // $Id$ 00014 00015 #include "XProtocol/YProtocol.hh" 00016 00017 class XrdLink; 00018 00019 class XrdCmsTalk 00020 { 00021 public: 00022 00023 static const char *Attend( XrdLink *Link, XrdCms::CmsRRHdr &Hdr, 00024 char *buff, int blen, 00025 int &rlen, int tmo=5000); 00026 00027 static int Complain(XrdLink *Link, int ecode, const char *msg); 00028 00029 static const char *Request( XrdLink *Link, XrdCms::CmsRRHdr &Hdr, 00030 char *buff, int blen); 00031 00032 static const char *Respond( XrdLink *Link, XrdCms::CmsRspCode rcode, 00033 char *buff, int blen); 00034 00035 XrdCmsTalk() {} 00036 ~XrdCmsTalk() {} 00037 00038 }; 00039 #endif