Changeset 293 in xtideuniversalbios for trunk/Serial_Server/win32
- Timestamp:
- Mar 4, 2012, 1:33:52 AM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Serial_Server/win32/Win32Serial.h
r284 r293 12 12 #define PIPENAME "\\\\.\\pipe\\xtide" 13 13 14 class SerialAccess 14 class SerialAccess 15 15 { 16 16 public: … … 22 22 23 23 pipe = NULL; 24 24 25 25 if( !name ) 26 26 { … … 38 38 { 39 39 log( 0, "Opening named pipe %s (simulating %s baud)", name, baudRate->display ); 40 40 41 41 pipe = CreateNamedPipeA( name, PIPE_ACCESS_DUPLEX, PIPE_TYPE_BYTE|PIPE_REJECT_REMOTE_CLIENTS, 2, 1024, 1024, 0, NULL ); 42 42 if( pipe == INVALID_HANDLE_VALUE ) 43 43 log( -1, "Could not CreateNamedPipe " PIPENAME ); 44 44 45 45 if( !ConnectNamedPipe( pipe, NULL ) ) 46 46 log( -1, "Could not ConnectNamedPipe" ); … … 60 60 61 61 log( 0, "Opening %s (%s baud)", name, baudRate->display ); 62 62 63 63 pipe = CreateFileA( name, GENERIC_READ|GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0 ); 64 64 if( pipe == INVALID_HANDLE_VALUE ) 65 65 log( -1, "Could not Open \"%s\"", name ); 66 66 67 67 FillMemory(&dcb, sizeof(dcb), 0); 68 68 FillMemory(&timeouts, sizeof(timeouts), 0); … … 83 83 msg = "\n On this COM port, baud rate is limited to 115.2K"; 84 84 } 85 log( -1, "Could not SetCommState: baud rate selected may not be availab ele%s", msg );85 log( -1, "Could not SetCommState: baud rate selected may not be available%s", msg ); 86 86 } 87 87 … … 94 94 95 95 EnumerateCOMPorts( logbuff, 1024 ); 96 96 97 97 log( -1, "Serial port '%s' not found, detected COM ports: %s", name, logbuff ); 98 98 }
Note:
See TracChangeset
for help on using the changeset viewer.