xrootd
XrdClientLogConnection.hh
Go to the documentation of this file.
1 #ifndef XRD_CLOGCONNECTION_H
2 #define XRD_CLOGCONNECTION_H
3 /******************************************************************************/
4 /* */
5 /* X r d C l i e n t L o g C o n n e c t i o n . 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 // Class implementing logical connections //
36 // //
38 
39 #include "XProtocol/XPtypes.hh"
41 
42 class XrdClientSid;
44 
47 private:
49 
50  // A logical connection has a private streamid
52 
54 
55 public:
58 
60  return fPhyConnection;
61  }
62 
64  XrdClientMessage *unsolmsg);
65 
66  int ReadRaw(void *buffer, int BufferLength);
67 
68  inline void SetPhyConnection(XrdClientPhyConnection *PhyConn) {
69  fPhyConnection = PhyConn;
70  }
71 
72  int WriteRaw(const void *buffer, int BufferLength, int substreamid);
73 
74  inline kXR_unt16 Streamid() {
75  return fStreamid;
76  };
77 };
78 #endif
unsigned short kXR_unt16
Definition: XPtypes.hh:67
UnsolRespProcResult
Definition: XrdClientUnsolMsg.hh:43
Definition: XrdClientUnsolMsg.hh:51
Definition: XrdClientLogConnection.hh:46
XrdClientSid * fSidManager
Definition: XrdClientLogConnection.hh:53
XrdClientPhyConnection * fPhyConnection
Definition: XrdClientLogConnection.hh:48
XrdClientLogConnection(XrdClientSid *sidmgr)
virtual ~XrdClientLogConnection()
kXR_unt16 fStreamid
Definition: XrdClientLogConnection.hh:51
int WriteRaw(const void *buffer, int BufferLength, int substreamid)
UnsolRespProcResult ProcessUnsolicitedMsg(XrdClientUnsolMsgSender *sender, XrdClientMessage *unsolmsg)
void SetPhyConnection(XrdClientPhyConnection *PhyConn)
Definition: XrdClientLogConnection.hh:68
kXR_unt16 Streamid()
Definition: XrdClientLogConnection.hh:74
XrdClientPhyConnection * GetPhyConnection()
Definition: XrdClientLogConnection.hh:59
int ReadRaw(void *buffer, int BufferLength)
Definition: XrdClientMessage.hh:49
Definition: XrdClientPhyConnection.hh:69
Definition: XrdClientSid.hh:57
Definition: XrdClientUnsolMsg.hh:63