version 1.2, 2004/10/17 20:39:16
|
version 1.3, 2005/01/16 01:52:55
|
|
|
// Author: Carol Ann Krug Graves, Hewlett-Packard Company | // Author: Carol Ann Krug Graves, Hewlett-Packard Company |
// (carolann_graves@hp.com) | // (carolann_graves@hp.com) |
// | // |
// Modified By: |
// Modified By: David Dillard, VERITAS Software Corp. |
|
// (david.dillard@veritas.com) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
} | } |
| |
AnonymousPipe::Status AnonymousPipe::writeBuffer ( | AnonymousPipe::Status AnonymousPipe::writeBuffer ( |
const char * buffer, |
const void * buffer, |
Uint32 bytesToWrite) | Uint32 bytesToWrite) |
{ | { |
// | // |
|
|
// | // |
SignalHandler::ignore (PEGASUS_SIGPIPE); | SignalHandler::ignore (PEGASUS_SIGPIPE); |
| |
const char * writeBuffer = buffer; |
const char * writeBuffer = reinterpret_cast<const char *>(buffer); |
DWORD expectedBytes = bytesToWrite; | DWORD expectedBytes = bytesToWrite; |
do | do |
{ | { |
|
|
} | } |
| |
AnonymousPipe::Status AnonymousPipe::readBuffer ( | AnonymousPipe::Status AnonymousPipe::readBuffer ( |
char * buffer, |
void * buffer, |
Uint32 bytesToRead) | Uint32 bytesToRead) |
{ | { |
// | // |
|
|
return STATUS_ERROR; | return STATUS_ERROR; |
} | } |
| |
buffer += bytesRead; |
buffer = reinterpret_cast<char *>(buffer) + bytesRead; |
bytesToRead -= bytesRead; | bytesToRead -= bytesRead; |
} while (bytesToRead > 0); | } while (bytesToRead > 0); |
| |