xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
src
XrdClient
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
"
21
#include "
XrdClient/XrdClientUnsolMsg.hh
"
22
23
class
XrdClientSid
;
24
class
XrdClientPhyConnection
;
25
26
class
XrdClientLogConnection
:
public
XrdClientAbsUnsolMsgHandler
,
27
public
XrdClientUnsolMsgSender
{
28
private
:
29
XrdClientPhyConnection
*
fPhyConnection
;
30
31
// A logical connection has a private streamid
32
kXR_unt16
fStreamid
;
33
34
XrdClientSid
*
fSidManager
;
35
36
public
:
37
XrdClientLogConnection
(
XrdClientSid
*sidmgr);
38
virtual
~XrdClientLogConnection
();
39
40
inline
XrdClientPhyConnection
*
GetPhyConnection
() {
41
return
fPhyConnection
;
42
}
43
44
UnsolRespProcResult
ProcessUnsolicitedMsg
(
XrdClientUnsolMsgSender
*sender,
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
Generated by
1.8.1.2