Continued development of AuthenticationToken Validation Service.
This commit is contained in:
@@ -447,10 +447,12 @@ CChannel::connectionThread(
|
||||
|
||||
DbgTrace(2, "CChannel::connectionThread- Processing Request Data Packet, Obj = %08X\n", pCChannel);
|
||||
|
||||
// Allocate a buffer big enough to receive the payload
|
||||
pRecvBuff = (char*) malloc(payloadLength);
|
||||
// Allocate a buffer big enough to receive the payload. Allow space to NULL terminate.
|
||||
pRecvBuff = (char*) malloc(payloadLength + 1);
|
||||
if (pRecvBuff != NULL)
|
||||
{
|
||||
pRecvBuff[payloadLength] = '\0';
|
||||
|
||||
// Buffer allocated, receive the request payload.
|
||||
while (1)
|
||||
{
|
||||
|
||||
@@ -380,6 +380,11 @@ IpcClientSubmitReq(
|
||||
// pointer to the buffer containing the data
|
||||
// received from the server.
|
||||
//
|
||||
// The returned buffer always contains a NULL after the
|
||||
// data indicated. You may be able to leverage this to
|
||||
// treat the data as a NULL terminated string in cases
|
||||
// where the request consists of ASCII characters.
|
||||
//
|
||||
// pServerDataLen - Pointer to variable that will receive the
|
||||
// length of the data received from the server.
|
||||
//
|
||||
@@ -388,7 +393,10 @@ IpcClientSubmitReq(
|
||||
//
|
||||
// Abstract: Method to submit a request.
|
||||
//
|
||||
// Note: The routine blocks until the request completes.
|
||||
// Notes: The routine blocks until the request completes.
|
||||
//
|
||||
// The buffer returned with the server data must be released
|
||||
// by the calling application by calling free().
|
||||
//
|
||||
// L0
|
||||
//=======================================================================--
|
||||
|
||||
@@ -157,7 +157,7 @@ ExecuteTests(void)
|
||||
// Initialize the Client Ipc Subsystem
|
||||
if (IpcClientInit("TestClient",
|
||||
true,
|
||||
3,
|
||||
DebugLevel,
|
||||
false) == 0)
|
||||
{
|
||||
// Set the server listen address
|
||||
@@ -235,6 +235,7 @@ main(
|
||||
bool doneScanning = false;
|
||||
bool invalidOption = false;
|
||||
int option;
|
||||
int initialCount;
|
||||
|
||||
printf("**** Ipc Client test ****\n");
|
||||
|
||||
@@ -284,7 +285,9 @@ main(
|
||||
{
|
||||
printf("submitReqCount = %d\n", submitReqCount);
|
||||
printf("submitThreadCount = %d\n", submitThreadCount);
|
||||
initialCount = submitReqCount;
|
||||
ExecuteTests();
|
||||
printf("Submits issued = %d\n", initialCount - submitReqCount);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user