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_t request(const MsgAddr& to, const Message& req, MsgHeader& hdr, char* data, index_t length)
req - Request message.
hdr - Reply header.
data - Pointer to buffer to receive reply text.
length - Length of reply buffer.
error_t request(const MsgHeader& ReqHdr, const void* ReqData, MsgHeader& hdr, char* data, index_t length)
ReqData - Request message text.
hdr - Reply header.
data - Pointer to buffer to receive reply text.
length - Length of reply buffer.
error_t request(const MsgAddr& to, const Message& Req, Message& Reply)
Req - Request message.
Reply - Reply message.
error_t request(const MsgAddr& to, const Message& Req, MsgHeader& RepHdr, Message& Reply)
Req - Request message.
RepHdr - Reply message header.
Reply - Reply message.
error_t getDebug(void) const
error_t getRetry(void) const
wtime_t getTimeOut(void) const
bool isOpen(void) const
void setBufferPool(BufferPool* pool)
void setDebug(index_t level)
void setRetry(index_t n)
void setTimeOut(wtime_t time)
void setSocketPool(SocketPool* pool)
alphabetic index hierarchy of classes
generated by doc++