A new COMGetParam() member
"ERR_DETAIL_MSG" has been added to allow the protocol driver to get
detailed error message from TCP/IP driver instead of error code
only.
sample code.
#include "ct_drv.h"
...
ERRORMSG *pErrMsg = (ERRORMSG *)pBuf;
pErrMsg->nErrorCode = errcode; // the error code returned by
COMGets, COMPuts or COMStats)
pErrMsg->nBufLength = buflength; // supplied buffer length to
which pBuf points.
COMGetParam(cp->Config.ChannelNumber, "ERR_DETAIL_MSG", pBuf);
// a "c" string error msg will be returned in pBuf.
...
|