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

BOOL PDelayChannel::Write ( const void *  buf,
PINDEX  len 
) [virtual]

Low level write to the file channel. The write timeout is ignored for file I/O. The GetLastWriteCount() function returns the actual number of bytes written.

The GetErrorCode() function should be consulted after Write() returns FALSE to determine what caused the failure.

TRUE if at least len bytes were written to the channel.
buf  Pointer to a block of memory to write.
len  Number of bytes to write.

Reimplemented from PIndirectChannel.

Definition at line 114 of file delaychan.cxx.

References PIndirectChannel::Write().

  if (mode != DelayReadsOnly)
    Wait(count, nextWriteTick);
  return PIndirectChannel::Write(buf, count);

Generated by  Doxygen 1.6.0   Back to index