Commit Graph

2277 Commits

Author SHA1 Message Date
Nick Bolton 78244c25bd moved gui ipc reader start out of ctor 2012-07-11 20:01:58 +00:00
Nick Bolton 19ccba8126 made gui compatible with new version of ipc protocol. 2012-07-11 18:28:28 +00:00
Nick Bolton 82d91605fa changed ipc protocol to be more like original synergy protocol (4 byte message codes and better use of protocol util class). 2012-07-11 18:06:10 +00:00
Nick Bolton 0a7c7f5073 removed malloc usage 2012-07-11 14:06:46 +00:00
Nick Bolton eca240eec7 changed integ tests to use another port for ipc. 2012-07-11 12:07:13 +00:00
Nick Bolton 5f0402d47b fixed linux syntax and build errors 2012-07-10 18:35:33 +00:00
Nick Bolton d48dfd62dd patch by Michiel van der Leeuw and Alex Evans
* removed varargs to improve portability (using sprintf)
* reversed endianness
* fixed keyboard up message modifiers
* added zlib license file
2012-07-10 17:17:57 +00:00
Nick Bolton f26e7b0d97 fixed unit tests (log not initialized) 2012-07-10 13:55:05 +00:00
Nick Bolton e942093407 added "shutdown existing processes" feature to relauncher. 2012-07-10 11:54:20 +00:00
Nick Bolton f9f04034c9 fixed: ipc client running on synergyc wasn't sending hello message, and so wasn't getting shutdown message. edits to CIpcClient or CIpcTests weren't really needed, but looks slightly better this way maybe. 2012-07-10 11:23:08 +00:00
Nick Bolton 5be1fd0cfa made ipc log outputter message drop mechanism only drop messages from the buffer thread (*should* not cause deadlock, but feels a bit risky). 2012-07-10 10:04:52 +00:00
Nick Bolton 8bad45e8a2 * fixed a shit-ton of memory leaks (lots in the ipc log handler, oops)
* added non-pod data support to events (event delete can now call dtors)
* improved cleanup of ipc message objects (because of non-pod event data support)
* moved the "message received" event up to ipc server and client (passed on from proxies)
2012-07-10 01:51:51 +00:00
Nick Bolton 21cf3f2478 fixed minor warning - type signing mismatch. 2012-07-09 12:27:13 +00:00
Nick Bolton 346666791e * made gui ipc reader more robust by getting rid of reader thread (but read wait now blocks gui thread)
* separated ipc client proxy mutex into read and write (i think read was deadlocking write)
* fixed cpu spinning on ipc log send buffer thread (now uses wait cond like before).
2012-07-09 12:09:24 +00:00
Nick Bolton e501552f24 * increased gui ipc read check (yes yes, i should be using wait cond... but qt mutexes suck)
* added mutex to client proxy to protect stream
* added try/catch to ipc log outputter buffer thread
* protected ipc client proxy list with mutex (saw a weird stl error, might be caused by cross-thread weirdness)
2012-07-08 17:49:45 +00:00
Nick Bolton ecf1833f36 * removed wait cond and mutex usage from gui ipc log reader (it was being used incorrectly anyway)
* raised the log-to-console level to DEBUG2
* added force option to ipc log buffer (to side-step the anti-recursion "mechanism")
* made relauncher always relay server/client messages to ipc client (gui)
2012-07-08 16:27:28 +00:00
Nick Bolton f0493351a1 attempting to solve ipc recursion/deadlock problem by always buffering in the log outputter. 2012-07-08 16:01:27 +00:00
Nick Bolton af9a6beb78 made ipc reader on gui side more robuts, but deadlocking issue on ipc server still exists (caused by sending log messages). 2012-07-06 22:17:26 +00:00
Nick Bolton 9fbbff11b6 added exe to uninstall 2012-07-06 16:53:37 +00:00
Nick Bolton 663cd28f2d attempting to fix deadlocks by going mutex crazy (this never ends well) 2012-07-06 16:18:21 +00:00
Nick Bolton 17a92f4f4c attempted to fix deadlock caused by ipc logger causing recursion. 2012-07-06 14:46:46 +00:00
Nick Bolton 12eb8efb61 implemented ipc message buffering (dequeues on gui reconnect) 2012-07-06 12:27:22 +00:00
Nick Bolton b921d9c916 improved hook dll retry, fails silently now since there's not much the user can do, and we're not planning to change the dll significantly any time soon so it won't matter if it isn't replaced. 2012-07-05 22:35:15 +00:00
Nick Bolton fbc4a89653 added retry to installer for synrgyhk.dll file delete problem, seems to help.
added hack to daemon to suppresses service controller false positive error.
tidied up a few of the log lines to make the place look nicer for newbies.
removed annoying build line from dist command.
2012-07-05 21:26:41 +00:00
Nick Bolton ddb2d7feeb fixed: ipc client connected event was being wiped out
daemon now communicates graceful shutdown message through new ipc system.
2012-07-05 19:10:04 +00:00
Nick Bolton 3d6551f708 moved stream into synergy namespace (to prevent naming collision in win libs)
implemented ipc "hello" message (to identify client type)
integ tests working for hello message, but use of ipc in main program has problem with events.
2012-07-05 18:05:35 +00:00
Nick Bolton 4e268760b3 ripped out rest of shitty named pipes ipc stuff.
fixed the byte to int reader on the gui ipc (unsigned chars, argh!!!).
retry on fail for gui ipc connect.
2012-07-04 23:27:03 +00:00
Nick Bolton a8ce3418fe improved hook lib load fail error a little 2012-07-04 23:25:25 +00:00
Nick Bolton 417abb99fe separated nsis stuff into new .nsh file (for syntax highlighting) 2012-07-04 23:24:48 +00:00
Nick Bolton 58c5a1d84d micro client. 2012-07-04 19:36:49 +00:00
Nick Bolton bab317931b size hack for gui ipc (only temporary) 2012-07-04 19:36:18 +00:00
Nick Bolton e0098d5c8f distribution source 2012-07-04 19:35:32 +00:00
Nick Bolton 0537bbdfad increased ipc message length. 2012-07-03 17:33:19 +00:00
Nick Bolton 7d5fbde71d fully replaced gui/daemon named pipes ipc with tcp ipc. 2012-07-03 14:15:05 +00:00
Nick Bolton 79d73bd163 ipc send message to client finished. 2012-07-02 15:28:23 +00:00
Nick Bolton 97b2cd669d finished ipc send to server. 2012-07-02 13:45:52 +00:00
Nick Bolton 05775bc73d finished ipc connect with unit test. 2012-07-01 21:18:21 +00:00
Nick Bolton d829e854a4 tweaked sponsor toolbar. 2012-07-01 18:40:09 +00:00
Nick Bolton 2374675c43 added restart hint message box for synrgyhk.dll install failure
added project sponsor toolbar to installer (with option to skip)
2012-06-30 19:50:32 +00:00
Nick Bolton 817032eb99 added sign command. 2012-06-30 12:37:50 +00:00
Nick Bolton 218e98398f ipc client connect test with working unit tests. 2012-06-29 11:33:21 +00:00
Nick Bolton 7d8fd5927d skeleton for new ipc code. 2012-06-28 07:29:06 +00:00
Nick Bolton 0c42964f3a normalised line endings. 2012-06-28 04:40:23 +00:00
Nick Bolton 488241850c moving 1.4 to trunk 2012-06-10 16:50:54 +00:00
Nick Bolton cdeb3a7824 reworded readme 2011-10-05 00:39:14 +00:00
Nick Bolton d6c80b5204 corrected readme typo 2011-10-05 00:22:24 +00:00
Nick Bolton 05d7bc173d readme 80 char rule 2011-10-05 00:16:44 +00:00
Nick Bolton e65886857d removed trunk; please commit to (and build patches against) release branches instead. 2011-10-05 00:10:22 +00:00
Nick Bolton 422fd7adf3 fixed docs toolchain error 2011-09-11 17:17:12 +00:00
Nick Bolton 54588b3d6f backing out r1057 2011-06-29 09:56:32 +00:00