Logo Search packages:      
Sourcecode: pwlib version File versions

BOOL PChannel::Write ( const VectorOfSlice &  slices  )  [virtual, inherited]

Low level scattered write to the channel. This is identical to Write except that the data will be written from a series of scattered memory slices. By default, this call will default to calling Write multiple times, but this can be actually implemented by operating systems to do a real scattered write

TRUE indicates that at least one character was read from the channel. FALSE means no bytes were read due to timeout or some other I/O error.

Definition at line 703 of file pchannel.cxx.

References PChannel::lastWriteCount, and PChannel::Write().

  PINDEX length = 0;

  VectorOfSlice::const_iterator r;
  for (r = slices.begin(); r != slices.end(); ++r) {
    BOOL stat = Write(r->iov_base, r->iov_len);
    length        += lastWriteCount;
    lastWriteCount = length;
    if (!stat)
      return FALSE;

  return TRUE;

Generated by  Doxygen 1.6.0   Back to index