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

const short SerialStreamBuf::VMin (  )  const

Get current size of character buffer.

Definition at line 680 of file SerialStreamBuf.cc.

References mFileDescriptor.

Referenced by LibSerial::SerialStream::VMin().

                                        {
    if( -1 == mFileDescriptor ) {
        return -1 ;
    }
    //
    // Get the current terminal settings. 
    //
    struct termios term_setting ;
    if( -1 == tcgetattr(mFileDescriptor, &term_setting) ) {
        return -1 ;
    }

    return term_setting.c_cc[VMIN];
}


Generated by  Doxygen 1.6.0   Back to index