ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Private Attributes | List of all members
XrdProofdResponse Class Reference

Definition at line 36 of file XrdProofdResponse.h.

Public Member Functions

 XrdProofdResponse ()
 
virtual ~XrdProofdResponse ()
 
const char * STRID ()
 
const char * TraceID () const
 
XrdLink * Link () const
 
int LinkSend (const char *buff, int len, XrdOucString &e)
 Method actually sending the buffer(s) over the link. More...
 
int LinkSend (const struct iovec *iov, int iocnt, int len, XrdOucString &e)
 Method actually sending the buffer(s) over the link. More...
 
int Send (void)
 Auxilliary Send method. More...
 
int Send (const char *msg)
 Auxilliary Send method. More...
 
int Send (void *data, int dlen)
 Auxilliary Send method. More...
 
int Send (XResponseType rcode)
 Auxilliary Send method. More...
 
int Send (XResponseType rcode, void *data, int dlen)
 Auxilliary Send method. More...
 
int Send (XErrorCode ecode, const char *msg)
 Auxilliary Send method. More...
 
int Send (XPErrorCode ecode, const char *msg)
 Auxilliary Send method. More...
 
int Send (XResponseType rcode, int info, char *data=0)
 Auxilliary Send method. More...
 
int Send (XResponseType rcode, XProofActionCode acode, int info)
 Auxilliary Send method. More...
 
int Send (XResponseType rcode, XProofActionCode acode, void *data, int dlen)
 Auxilliary Send method. More...
 
int Send (XResponseType rcode, XProofActionCode acode, kXR_int32 sid, void *data, int dlen)
 Auxilliary Send method. More...
 
int SendI (kXR_int32 int1, void *data=0, int dlen=0)
 Auxilliary Send method. More...
 
int SendI (kXR_int32 int1, kXR_int32 int2, void *data=0, int dlen=0)
 Auxilliary Send method. More...
 
int SendI (kXR_int32 int1, kXR_int16 int2, kXR_int16 int3, void *data=0, int dlen=0)
 Auxilliary Send method. More...
 
void Set (XrdLink *l)
 Set the link to be used by this response. More...
 
void SetTag (const char *tag)
 
void SetTraceID ()
 Auxilliary set method. More...
 
void Set (unsigned char *stream)
 Auxilliary Set method. More...
 
void Set (unsigned short streamid)
 Auxilliary Set method. More...
 
void Set (ServerResponseHeader *resp)
 Fill the stream id. More...
 
void GetSID (unsigned short &sid)
 Get stream ID (to be able to restore it later. More...
 
void SetTrsid ()
 Auxilliary Set method. More...
 
void Reset ()
 

Public Attributes

XrdSysRecMutex fMutex
 

Private Attributes

ServerResponseHeader fResp
 
XrdLink * fLink
 
char fTrsid [8]
 
unsigned short fSID
 
XrdOucString fTraceID
 
XrdOucString fTag
 

#include <XrdProofdResponse.h>

Constructor & Destructor Documentation

XrdProofdResponse::XrdProofdResponse ( )
inline

Definition at line 39 of file XrdProofdResponse.h.

virtual XrdProofdResponse::~XrdProofdResponse ( )
inlinevirtual

Definition at line 40 of file XrdProofdResponse.h.

Member Function Documentation

void XrdProofdResponse::GetSID ( unsigned short &  sid)

Get stream ID (to be able to restore it later.

Definition at line 674 of file XrdProofdResponse.cxx.

XrdLink* XrdProofdResponse::Link ( ) const
inline

Definition at line 45 of file XrdProofdResponse.h.

int XrdProofdResponse::LinkSend ( const char *  buff,
int  len,
XrdOucString &  emsg 
)

Method actually sending the buffer(s) over the link.

The link is closed in case of error, because we cannot use it anymore and the counter part needs to reconnect. Return 0 on success, -1 on failure.

Definition at line 579 of file XrdProofdResponse.cxx.

Referenced by Send(), and SendI().

int XrdProofdResponse::LinkSend ( const struct iovec *  iov,
int  iocnt,
int  len,
XrdOucString &  emsg 
)

Method actually sending the buffer(s) over the link.

Functionality a la 'writev' is simulated by segmenting the sending. This allows to avoid a recovery problem with 'writev'. Return 0 on success, -1 on failure.

Definition at line 612 of file XrdProofdResponse.cxx.

void XrdProofdResponse::Reset ( void  )
inline

Definition at line 80 of file XrdProofdResponse.h.

Referenced by XrdProofdResponse().

int XrdProofdResponse::Send ( void  )
int XrdProofdResponse::Send ( const char *  msg)

Auxilliary Send method.

Definition at line 119 of file XrdProofdResponse.cxx.

int XrdProofdResponse::Send ( void data,
int  dlen 
)

Auxilliary Send method.

Definition at line 482 of file XrdProofdResponse.cxx.

int XrdProofdResponse::Send ( XResponseType  rcode)

Auxilliary Send method.

Definition at line 96 of file XrdProofdResponse.cxx.

int XrdProofdResponse::Send ( XResponseType  rcode,
void data,
int  dlen 
)

Auxilliary Send method.

Definition at line 147 of file XrdProofdResponse.cxx.

int XrdProofdResponse::Send ( XErrorCode  ecode,
const char *  msg 
)

Auxilliary Send method.

Definition at line 510 of file XrdProofdResponse.cxx.

int XrdProofdResponse::Send ( XPErrorCode  ecode,
const char *  msg 
)

Auxilliary Send method.

Definition at line 543 of file XrdProofdResponse.cxx.

int XrdProofdResponse::Send ( XResponseType  rcode,
int  info,
char *  data = 0 
)

Auxilliary Send method.

Definition at line 175 of file XrdProofdResponse.cxx.

int XrdProofdResponse::Send ( XResponseType  rcode,
XProofActionCode  acode,
int  info 
)

Auxilliary Send method.

Definition at line 308 of file XrdProofdResponse.cxx.

int XrdProofdResponse::Send ( XResponseType  rcode,
XProofActionCode  acode,
void data,
int  dlen 
)

Auxilliary Send method.

Definition at line 217 of file XrdProofdResponse.cxx.

int XrdProofdResponse::Send ( XResponseType  rcode,
XProofActionCode  acode,
kXR_int32  sid,
void data,
int  dlen 
)

Auxilliary Send method.

Definition at line 260 of file XrdProofdResponse.cxx.

int XrdProofdResponse::SendI ( kXR_int32  int1,
void data = 0,
int  dlen = 0 
)

Auxilliary Send method.

Definition at line 439 of file XrdProofdResponse.cxx.

int XrdProofdResponse::SendI ( kXR_int32  int1,
kXR_int32  int2,
void data = 0,
int  dlen = 0 
)

Auxilliary Send method.

Definition at line 393 of file XrdProofdResponse.cxx.

int XrdProofdResponse::SendI ( kXR_int32  int1,
kXR_int16  int2,
kXR_int16  int3,
void data = 0,
int  dlen = 0 
)

Auxilliary Send method.

Definition at line 343 of file XrdProofdResponse.cxx.

void XrdProofdResponse::Set ( XrdLink *  l)

Set the link to be used by this response.

Definition at line 695 of file XrdProofdResponse.cxx.

Referenced by XrdProofdProtocol::Process(), Send(), and SendI().

void XrdProofdResponse::Set ( unsigned char *  stream)

Auxilliary Set method.

Definition at line 644 of file XrdProofdResponse.cxx.

void XrdProofdResponse::Set ( unsigned short  streamid)

Auxilliary Set method.

Definition at line 657 of file XrdProofdResponse.cxx.

void XrdProofdResponse::Set ( ServerResponseHeader *  resp)

Fill the stream id.

Definition at line 683 of file XrdProofdResponse.cxx.

void XrdProofdResponse::SetTag ( const char *  tag)
inline

Definition at line 71 of file XrdProofdResponse.h.

Referenced by XrdProofdClientMgr::MapClient().

void XrdProofdResponse::SetTraceID ( )

Auxilliary set method.

Definition at line 706 of file XrdProofdResponse.cxx.

Referenced by XrdProofdClientMgr::MapClient().

void XrdProofdResponse::SetTrsid ( )

Auxilliary Set method.

Definition at line 728 of file XrdProofdResponse.cxx.

Referenced by Set().

const char* XrdProofdResponse::STRID ( )
inline

Definition at line 42 of file XrdProofdResponse.h.

const char* XrdProofdResponse::TraceID ( ) const
inline

Member Data Documentation

XrdLink* XrdProofdResponse::fLink
private

Definition at line 91 of file XrdProofdResponse.h.

Referenced by Link(), LinkSend(), Reset(), Set(), and SetTraceID().

XrdSysRecMutex XrdProofdResponse::fMutex

Definition at line 86 of file XrdProofdResponse.h.

Referenced by GetSID(), LinkSend(), Reset(), Set(), and SetTraceID().

ServerResponseHeader XrdProofdResponse::fResp
private

Definition at line 90 of file XrdProofdResponse.h.

Referenced by GetSID(), Reset(), Set(), and SetTrsid().

unsigned short XrdProofdResponse::fSID
private

Definition at line 94 of file XrdProofdResponse.h.

Referenced by Reset(), and Set().

XrdOucString XrdProofdResponse::fTag
private

Definition at line 97 of file XrdProofdResponse.h.

Referenced by SetTag(), and SetTraceID().

XrdOucString XrdProofdResponse::fTraceID
private

Definition at line 96 of file XrdProofdResponse.h.

Referenced by SetTraceID(), and TraceID().

char XrdProofdResponse::fTrsid[8]
private

Definition at line 92 of file XrdProofdResponse.h.

Referenced by Reset(), SetTraceID(), SetTrsid(), and STRID().


The documentation for this class was generated from the following files: