xrootd
XrdClientLogConnection.hh
Go to the documentation of this file.
1 
2 // //
3 // XrdClientLogConnection //
4 // //
5 // Author: Fabrizio Furano (INFN Padova, 2004) //
6 // Adapted from TXNetFile (root.cern.ch) originally done by //
7 // Alvise Dorigo, Fabrizio Furano //
8 // INFN Padova, 2003 //
9 // //
10 // Class implementing logical connections //
11 // //
13 
14 // $Id$
15 
16 #ifndef XRD_CLOGCONNECTION_H
17 #define XRD_CLOGCONNECTION_H
18 
19 
20 #include "XProtocol/XPtypes.hh"
22 
23 class XrdClientSid;
25 
28 private:
30 
31  // A logical connection has a private streamid
33 
35 
36 public:
38  virtual ~XrdClientLogConnection();
39 
41  return fPhyConnection;
42  }
43 
45  XrdClientMessage *unsolmsg);
46 
47  int ReadRaw(void *buffer, int BufferLength);
48 
49  inline void SetPhyConnection(XrdClientPhyConnection *PhyConn) {
50  fPhyConnection = PhyConn;
51  }
52 
53  int WriteRaw(const void *buffer, int BufferLength, int substreamid);
54 
55  inline kXR_unt16 Streamid() {
56  return fStreamid;
57  };
58 };
59 
60 #endif