Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

BOOL PChannel::ConvertOSError ( int  libcReturnValue,
ErrorGroup  group = LastGeneralError 
) [protected, virtual, inherited]

Convert an operating system error into platform independent error. The internal error codes are set by this function. They may be obtained via the GetErrorCode()# and GetErrorNumber()# functions.

TRUE if there was no error.
group  Error group to set

Reimplemented in PSSLChannel.

Definition at line 668 of file pchannel.cxx.

References PChannel::ConvertOSError(), and PChannel::SetErrorValues().

  Errors lastError;
  int osError;
  BOOL ok = ConvertOSError(status, lastError, osError);
  SetErrorValues(lastError, osError, group);
  return ok;

Generated by  Doxygen 1.6.0   Back to index