SerialPort.cpp   SerialPort.cpp 
skipping to change at line 36 skipping to change at line 36
#include "LogFile.hpp" #include "LogFile.hpp"
#ifndef Q_OS_WIN32 #ifndef Q_OS_WIN32
#include <unistd.h> #include <unistd.h>
#endif #endif
#include <string.h> // memset #include <string.h> // memset
using namespace std; using namespace std;
SerialPort::SerialPort(Server &server, const char *serial_device) : Connect SerialPort::SerialPort(Server &server, const char *serial_device)
ion(server, INVALID_SOCKET) : Connection(server, INVALID_SOCKET)
#ifndef Q_OS_WIN32
, termios_original(termios())
#endif
{ {
#ifdef Q_OS_WIN32 #ifdef Q_OS_WIN32
handle = CreateFile(serial_device, GENERIC_READ|GENERIC_WRITE, 0, 0, OPEN_EXISTING, 0, 0); handle = CreateFile(serial_device, GENERIC_READ|GENERIC_WRITE, 0, 0, OPEN_EXISTING, 0, 0);
if (handle == INVALID_HANDLE_VALUE) if (handle == INVALID_HANDLE_VALUE)
{ {
*log_file << Now() << "SerialPort::SerialPort(" << serial_de vice << "): " *log_file << Now() << "SerialPort::SerialPort(" << serial_de vice << "): "
"CreateFile() failed: " << GetLastErro r() << endl; "CreateFile() failed: " << GetLastErro r() << endl;
} }
else else
{ {
 End of changes. 1 change blocks. 
2 lines changed or deleted 5 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/