IBM 4J Webcam User Manual


 
Method Description Parameter Return Values
GetPreviousError Moves the error data pointer to
the previous error in the list.
void TRUE—If successful
FALSE—If no
previous error
exists.
GetFirstError Moves the error data pointer to
the first error in the list.
void TRUE—If successful
FALSE—If no error
is found.
GetLastError Moves the error data pointer to
the last error in the list.
void TRUE—If successful,
otherwise FALSE.
GetMsgID Retrieves the message of the
current error data block.
You must call one of the
GetXXXXError methods before
calling this method in order to
retrieve the proper results.
void Return Value:
Pointer to a message
ID if data block is
value.
GetFeedBackCode Returns the feedback code of the
current error data block.
void Feedback code.
GetReturnCode Returns the Sterling
Connect:Direct return code.
void One of the valid
Sterling
Connect:Direct
return code: 1,4,8,16.
GetStatus Returns the status. void Sterling
Connect:Direct
status code.
GetSubstitute Returns the current substitution
buffer associated with the error.
void Pointer to a
substitution buffer.
DisplayError Displays the current error chain
to an output location.
Parameters:
Pointer to a
file I/O
structure.
Return Value:
Returns the highest
error found in the
error chain or -1 on
error.
Following is the ConnectDirectSession class header:
#include <stdio.h>
// Error enumeration.
typedef enum CDErrorCode
{
CD_SUCCESS = 0,
CD_FAILURE = -1
} CDErrorCode;
// <<Interface>>
class CDSession
{
public:
// Communication methods...
virtual CDErrorCode Connect(void) = 0;
virtual CDErrorCode Connect(char *IpAddress, char *IpPort) = 0;
virtual CDErrorCode DisConnect(void) = 0;
virtual CDErrorCode SendCommand(char *CmdText) = 0;
virtual CDErrorCode ReceiveResponse(void) = 0;
72 Sterling Connect:Direct for UNIX: User Guide