From 8c6b8752f69aa527e51f00b3a8526fe03dd9e122 Mon Sep 17 00:00:00 2001 From: zecke Date: Fri, 11 Oct 2002 15:08:46 +0000 Subject: Introduce rawIO in the IOLayer This is needed because ?-modem does not like buffered IO at all and we at least double buffered it While sz_transfer is now dead we've filetransfer which is using DirectIO between IOLayer and the SZ IOSerial got adjusted to the rawIO introduction --- (limited to 'noncore/apps/opie-console/io_serial.cpp') diff --git a/noncore/apps/opie-console/io_serial.cpp b/noncore/apps/opie-console/io_serial.cpp index 929aeff..845f4be 100644 --- a/noncore/apps/opie-console/io_serial.cpp +++ b/noncore/apps/opie-console/io_serial.cpp @@ -157,7 +157,7 @@ void IOSerial::errorOccured() { } void IOSerial::dataArrived() { - QByteArray array(4096); + QByteArray array(4097); int len = read(m_fd, array.data(), 4096); if (len == 0) @@ -175,3 +175,8 @@ QString IOSerial::identifier() const { QString IOSerial::name() const { return "RS232 Serial IO Layer"; } +int IOSerial::rawIO()const { + int fd = ::open(m_device, O_RDWR ); + + return fd; +}; -- cgit v0.9.0.2