ROOT
6.06/09
Reference Guide
|
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>
|
inline |
Definition at line 39 of file XrdProofdResponse.h.
|
inlinevirtual |
Definition at line 40 of file XrdProofdResponse.h.
void XrdProofdResponse::GetSID | ( | unsigned short & | sid | ) |
Get stream ID (to be able to restore it later.
Definition at line 674 of file XrdProofdResponse.cxx.
|
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.
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.
Definition at line 80 of file XrdProofdResponse.h.
Referenced by XrdProofdResponse().
int XrdProofdResponse::Send | ( | void | ) |
Auxilliary Send method.
Definition at line 74 of file XrdProofdResponse.cxx.
Referenced by XrdProofdClient::Broadcast(), XrdProofdProofServ::Broadcast(), XrdProofdProofServ::BroadcastPriority(), XrdProofdAdmin::ExecCmd(), XrdProofdProtocol::Interrupt(), MessageSender(), XrdProofdProofServMgr::PrepareProofServ(), XrdProofdProtocol::Process(), XrdProofdProofServ::Resume(), XrdProofdNetMgr::Send(), XrdProofdProofServ::SendClusterInfo(), XrdProofdProtocol::SendData(), XrdProofdProofServ::SendData(), XrdProofdProofServ::SendDataN(), XrdProofdProofServMgr::SendErrLog(), XrdProofdClient::Touch(), XrdProofdProtocol::Urgent(), XrdProofdProofServ::VerifyProofServ(), and XrdProofdClient::VerifySession().
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.
|
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 | ( | ) |
|
inline |
Definition at line 42 of file XrdProofdResponse.h.
|
inline |
Definition at line 43 of file XrdProofdResponse.h.
Referenced by XrdProofdProtocol::Interrupt(), and XrdProofdClientMgr::MapClient().
|
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().
|
private |
Definition at line 90 of file XrdProofdResponse.h.
Referenced by GetSID(), Reset(), Set(), and SetTrsid().
|
private |
Definition at line 94 of file XrdProofdResponse.h.
|
private |
Definition at line 97 of file XrdProofdResponse.h.
Referenced by SetTag(), and SetTraceID().
|
private |
Definition at line 96 of file XrdProofdResponse.h.
Referenced by SetTraceID(), and TraceID().
|
private |
Definition at line 92 of file XrdProofdResponse.h.
Referenced by Reset(), SetTraceID(), SetTrsid(), and STRID().