Changeset 30:d92d686b4d70 in xplra
- Timestamp:
- 02/09/13 08:59:10 (12 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/client/c/hu/varadiistvan/xplra/XPlane.cc
r26 r30 40 40 41 41 #include <memory> 42 43 #ifndef _WIN32 44 #include <signal.h> 45 #endif 42 46 43 47 //------------------------------------------------------------------------------ … … 96 100 //------------------------------------------------------------------------------ 97 101 98 void XPlane::checkResult() throw(ProtocolException )102 void XPlane::checkResult() throw(ProtocolException, IOException) 99 103 { 100 104 uint8_t result = stream->readU8(); … … 137 141 } 138 142 } 143 144 #ifndef _WIN32 145 signal(SIGPIPE, SIG_IGN); 146 #endif 139 147 140 148 socket = clientSocket.release(); -
src/client/c/hu/varadiistvan/xplra/XPlane.h
r26 r30 280 280 /** 281 281 * Read and check the result. If it signifies an error, 282 * throw a ProtocolException with the correct error code. 283 */ 284 void checkResult() throw(ProtocolException); 282 * throw a ProtocolException with the correct error code. If there 283 * is some problem with the stream, an IOException is thrown. 284 */ 285 void checkResult() throw(ProtocolException, IOException); 285 286 286 287 /** -
test/Makefile.am
r29 r30 6 6 endif 7 7 8 noinst_PROGRAMS=ctest basictest basicctest multigettest multigetctest multisettest 8 noinst_PROGRAMS=ctest basictest basicctest multigettest multigetctest multisettest multisetctest 9 9 10 10 ctest_SOURCES=ctest.c … … 28 28 29 29 multisettest_SOURCES=multisettest.cc 30 31 multisetctest_SOURCES=multisetctest.c 32 if TARGET_API_WIN32 33 multisetctest_LDFLAGS=-lstdc++ 34 endif -
test/multigetctest.c
r29 r30 35 35 #include <string.h> 36 36 37 #ifdef _ _windows__37 #ifdef _WIN32 38 38 #include <windows.h> 39 39 #else … … 240 240 241 241 while(1) { 242 if (xplra_multi_execute(getterID)<0) return -1;242 if (xplra_multi_execute(getterID)<0) goto error; 243 243 printf("tail number: '%s', days: %d, zuluSec: %f\n", 244 244 tailnum, *days, *zuluSec); … … 265 265 busVolts[0], busVolts[1], busVolts[2], busVolts[3]); 266 266 printf("\n"); 267 #ifdef _ _windows__267 #ifdef _WIN32 268 268 Sleep(1000); 269 269 #else
Note:
See TracChangeset
for help on using the changeset viewer.