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

const short SerialStream::SetVTime ( short  vtime  ) 

Set character buffer timing in 10th of a second.

Definition at line 321 of file SerialStream.cc.

References LibSerial::SerialStreamBuf::SetVTime().

                                   {
    SerialStreamBuf* my_buffer = dynamic_cast<SerialStreamBuf *>(this->rdbuf()) ;
    if ( my_buffer ) {
      if ( -1 == my_buffer->SetVTime( vmin ) ) {
        setstate(badbit) ;
        return -1;
      };
    } else {
      setstate(badbit) ;
      return -1;
    };
    return vmin;
}


Generated by  Doxygen 1.6.0   Back to index