class AppClient Application client API.
The client application class provides a generic client API. AppClient provides the primitive client request operation and server name resolution functions. If a server does not reply to a request within a specified amount of time, the request is retried. A transaction ID is sent with the request and returned with the reply. The client API verifies that the trasaction ID of the reply is correct. The port used by the client API is allocated dynamically from a specified socket pool or from the defaul pool. If a request fails. the socket is deleted and a new socket is allocated to retry the request. In non-linux systems, the socket is logically connected to the server socket before the request is made. This allows the client to receive notification if the server socket is not available.
AppClient(void)
error_type request(const MsgAddr& to, const Message& req, MsgHeader& hdr, char* data, index_type length)
req - Request message.
hdr - Reply header.
data - Pointer to buffer to receive reply text.
length - Length of reply buffer.
error_type request(const MsgHeader& ReqHdr, const void* ReqData, MsgHeader& hdr, char* data, index_type length)
ReqData - Request message text.
hdr - Reply header.
data - Pointer to buffer to receive reply text.
length - Length of reply buffer.
error_type request(const MsgAddr& to, const Message& Req, Message& Reply)
Req - Request message.
Reply - Reply message.
error_type request(const MsgAddr& to, const Message& Req, MsgHeader& RepHdr, Message& Reply)
Req - Request message.
RepHdr - Reply message header.
Reply - Reply message.
error_type getDebug(void) const
error_type getRetry(void) const
wtime_type getTimeOut(void) const
bool isOpen(void) const
void setBufferPool(BufferPool* pool)
void setDebug(index_type level)
void setRetry(index_type n)
void setTimeOut(wtime_type time)
void setSocketPool(SocketPool* pool)
alphabetic index hierarchy of classes
Please send questions and comments to zweizig_j@ligo.caltech.edu
generated by doc++