Commit graph

43 commits

Author SHA1 Message Date
Stefan Persson
475fdb9d59 Code cleanup, removed debug messages 2012-12-06 16:12:42 +01:00
Stefan Persson
fcb798d466 Removed blank lines at start/end of code blocks according to Google style guidelines "whitespace/blank_line" 2012-12-05 13:02:06 +01:00
Stefan Persson
68a041edb4 An else should appear on the same line as the preceding }, according to Google style guidelines "whitespace/newline" 2012-12-05 13:01:57 +01:00
Stefan Persson
58d58a8640 Use tabs for indentation according to Google style guidelines "whitespace/usr_tab_for_indentation" 2012-12-05 13:01:52 +01:00
Stefan Persson
8d90a4e14a Added whitespaces to comments according to Google style guidelines "whitespace/comments" 2012-12-05 13:01:46 +01:00
Stefan Persson
fb79664508 Removed whitespace after line end, accoring to Google style guidelines "whitespace/end_of_line" 2012-12-05 11:43:31 +01:00
Stefan Persson
e38eb0f72d Ordered header files correctly according to Google style guidelines "build/include_order" 2012-12-05 11:39:48 +01:00
Stefan Persson
69c67e3c09 Fixed placement of curly braces according to Google style guidelines "whitespace/braces" 2012-12-05 11:36:03 +01:00
Micke Prag
3441b9cc45 Missing username in TODO according to Google style guidelines "readability/todo" 2012-12-04 17:25:17 +01:00
Micke Prag
6136c16d83 Use static_cast<int>(...) instead of C-style cast [readability/casting] 2012-12-04 17:16:06 +01:00
Micke Prag
01a65acdd6 Do not use namespace using-directives according to Google style guidelines "build/namespaces" 2012-12-04 16:56:44 +01:00
Stefan Persson
7d0f3747fe Include directory when naming .h files, according to Google style guidelines "build/include" 2012-12-04 16:39:39 +01:00
Stefan Persson
d5e8c1f941 Adding copyright messages according to Google style guidelines "legal/copyright" 2012-12-04 16:10:17 +01:00
Stefan Persson
df6bd27883 More logging for TelldusService debug, ticket #266, 266-1. 2012-12-04 11:34:06 +01:00
Stefan Persson
7ee8407922 Leave read loop on broken pipe 2012-09-03 17:00:17 +02:00
Stefan Persson
0d8bf77a45 Only a lot of debug printouts, but this version is working for SwitchKing at least 2012-09-03 16:59:09 +02:00
Micke Prag
9500c4c898 Convert dos endings to unix in telldus-core, see #160 2012-02-27 17:37:52 +01:00
Stefan Persson
c049b97a64 Dispatching of events in own thread, to somewhat counter problems with long running events. 2012-02-23 15:48:39 +01:00
Carl Nettelblad
ed502d1660 Fixed for stability in the Windows Service. Mainly changes since CancelIO is
not synchronous. Big thanks to Carl Nettelblad for this.
See #93 and #94.
2011-12-30 14:18:06 +01:00
Stefan Persson
86554b26ac Code cleanup 2011-12-28 11:14:59 +01:00
Stefan Persson
81671d1607 Fixed so that receiving socket has no buffer limit when reading in Windows. Closes #145. 2011-12-28 10:56:44 +01:00
Stefan Persson
24586433d9 Windows service, 2.1.0a and new changes for possible new version. 2011-11-04 14:32:22 +01:00
Micke Prag
ffeb0b79d4 Wait for the event to be signaled, even if we already have waited this seems to do the trick. See #93 and #94 2011-10-07 07:57:55 +00:00
Stefan Persson
8565682ad8 Initializing OVERLAPPED to a value, possibly fixing service communication error in Windows Server 2003. 2011-03-31 12:54:28 +00:00
Micke Prag
d5ef022688 Removed TODO, we decided to keep the row 2010-10-25 14:39:51 +00:00
Stefan Persson
20804d441c New wait-for-object-fix when timeout is used in Socket_win 2010-10-25 08:14:28 +00:00
Stefan Persson
8da5bf1ae5 Timeout not infinite for client reads after sending 2010-10-21 14:52:24 +00:00
Stefan Persson
46bfb123cf Changed socket read/write timeouts. Read to INIFINITE (otherwise one extra click was needed for each timeout-time passed since the last click for callbacks to be registered) and Write to only 500 ms instead of 10 seconds. When a button is clicked after clients disconnect, callbacks and even new client connects will wait for this timeout for each disconnected client. If this is a problem, it will have to be solved in another way, perhaps a "client disconnect"-event that can be called at least when clients are shut down correctly? 2010-10-20 07:45:26 +00:00
Stefan Persson
2c2a030c9b Callback events implemented on client side (not tested for device and raw events) 2010-10-19 12:31:32 +00:00
Stefan Persson
96f66a26f7 IsConnected fixed, now reflects status of connection 2010-10-19 09:35:16 +00:00
Stefan Persson
80843dc99c Device callback events implemented server side (untested) 2010-10-18 15:33:05 +00:00
Micke Prag
45eadc068b Fix performance warning 2010-10-11 15:07:39 +00:00
Micke Prag
00112755ff Initialize the variable 2010-10-11 15:06:14 +00:00
Micke Prag
29a7ad15bf Fix performance warning 2010-10-11 15:04:08 +00:00
Stefan Persson
407cf1584a tdGetNumberOfDevices now communicates as expected. 2010-10-11 08:08:08 +00:00
Micke Prag
56ae5048aa Move the communication to Socket. 2010-10-08 16:37:27 +00:00
Stefan Persson
24426da77a Client/service communication 2010-10-08 15:47:19 +00:00
Stefan Persson
1ae53d5010 Code cleanup 2010-10-08 10:40:25 +00:00
Stefan Persson
47b0e19de0 Added Socket to namespace TelldusCore. 2010-10-08 10:36:37 +00:00
Stefan Persson
7eb9754ebd Close handle (hPipe) in destructor 2010-10-08 09:41:11 +00:00
Micke Prag
0859f868d6 Compile fixes for Windows. Code not working though. 2010-10-08 06:45:49 +00:00
Stefan Persson
08d838ba8d ClientMessageHandler added, and changed to wstring in some places. 2010-10-07 15:35:11 +00:00
Stefan Persson
1cc0a9496d New files 2010-10-07 14:30:11 +00:00