summaryrefslogtreecommitdiffstats
path: root/Source/cmServer.cxx
Commit message (Collapse)AuthorAgeFilesLines
* server: Split json dictionary into separate headerBrad King2018-09-211-0/+1
| | | | | | Move dictionary entries used by the json object generation code into a separate header. These are distinct from the server-only entries used in the protocol implementation.
* utilities: Swapped to use std C++11 mutex/threading constructsJustin Berger2017-12-011-3/+4
|
* server: Switched to a auto model for handlesJustin Berger2017-11-291-34/+33
|
* server: Swapped to cm_thread implJustin Berger2017-11-011-19/+14
|
* Replace empty-string comparisons with checking against `empty()`.Pavel Solodovnikov2017-09-211-1/+1
|
* server: Added thread check to protect writedataJustin Berger2017-08-311-0/+6
|
* server: Added assert to monitor uv_run statusJustin Berger2017-08-311-2/+10
|
* server: Made connections in a server have a mutex to avoid use after freesJustin Berger2017-08-311-7/+28
|
* server: Moved buffer formatting into bufferstrategyJustin Berger2017-08-311-2/+1
|
* server: Remove unused fields / functionsJustin Berger2017-08-311-4/+0
|
* server: Fixed minor memory leaksJustin Berger2017-08-311-4/+1
|
* server: Fixed mismatched new/delete; added proper shutdown procedureJustin Berger2017-08-311-13/+10
|
* Merge topic 'cstyle-casts'Daniel Pfeifer2017-08-301-2/+4
|\ | | | | | | | | | | | | 190e3825 Replace C-style casts Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1176
| * Replace C-style castsDaniel Pfeifer2017-08-271-2/+4
| |
* | server: backport to C++11Daniel Pfeifer2017-08-261-1/+2
|/
* Use C++11 nullptrDaniel Pfeifer2017-08-241-2/+2
|
* Merge topic 'server-refactor'Brad King2017-07-181-36/+206
|\ | | | | | | | | | | | | | | | | | | cf0ae55d server: Add support for connections that aren't event based 5ddfb6a4 server: Add connection as part of a request d4f5d35c server: Refactor to make the event loop owned by server object 5acbf08b Tests: Teach Server test to forward exit code from server process Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !552
| * server: Add support for connections that aren't event basedJustin Berger2017-07-111-2/+2
| |
| * server: Add connection as part of a requestJustin Berger2017-07-111-3/+3
| |
| * server: Refactor to make the event loop owned by server objectJustin Berger2017-07-111-33/+203
| |
* | server: Rename cmServerProtocol1_0 to cmServerProtocol1Ivan Shcherbakov2017-07-061-1/+1
|/ | | | | | It will serve additional minor versions. Suggested-by: Tobias Hunger <tobias.hunger@qt.io>
* cmServer: Fix compiler -Wdouble-promotion warningBrad King2017-05-241-1/+1
|
* cmServer: include what you useDaniel Pfeifer2017-05-051-12/+7
|
* Fix several include-what-you-use findingsDaniel Pfeifer2016-11-081-0/+1
|
* server-mode: Add infrastructure to watch the filesystemTobias Hunger2016-09-291-0/+5
| | | | | | | Enable the server to watch for filesystem changes. This patch includes * The infrastructure for the file watching * makes that infrastructure available to cmServerProtocols * Resets the filesystemwatchers on "configure"
* Simplify CMake per-source license noticesBrad King2016-09-271-13/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Per-source copyright/license notice headers that spell out copyright holder names and years are hard to maintain and often out-of-date or plain wrong. Precise contributor information is already maintained automatically by the version control tool. Ultimately it is the receiver of a file who is responsible for determining its licensing status, and per-source notices are merely a convenience. Therefore it is simpler and more accurate for each source to have a generic notice of the license name and references to more detailed information on copyright holders and full license terms. Our `Copyright.txt` file now contains a list of Contributors whose names appeared source-level copyright notices. It also references version control history for more precise information. Therefore we no longer need to spell out the list of Contributors in each source file notice. Replace CMake per-source copyright/license notice headers with a short description of the license and links to `Copyright.txt` and online information available from "https://cmake.org/licensing". The online URL also handles cases of modules being copied out of our source into other projects, so we can drop our notices about replacing links with full license text. Run the `Utilities/Scripts/filter-notices.bash` script to perform the majority of the replacements mechanically. Manually fix up shebang lines and trailing newlines in a few files. Manually update the notices in a few files that the script does not handle.
* cmServer: add braces around conditional statementsDaniel Pfeifer2016-09-231-12/+24
|
* server-mode: Allow for sending signalsTobias Hunger2016-09-221-0/+13
| | | | Enable the server to send signals.
* server-mode: Pass server into cmServerProtocolTobias Hunger2016-09-221-1/+1
| | | | The information will be needed to send signals.
* server-mode: Move constants for server mode into its own fileTobias Hunger2016-09-221-35/+29
| | | | | This removes some duplication and makes it easier to reuse the vocabulary.
* server-mode: Introduce cmServerConnectionTobias Hunger2016-09-221-126/+19
| | | | | | | | Use it to split pipe and stdin/out handling out of cmServer itself. The server will shut down when it looses its connection to the client. This has the nice property that a crashing client will cause the server to terminate as the OS will close the connection on behave of the client.
* server-mode: Add debug supportTobias Hunger2016-09-201-13/+69
| | | | | | | | | | Enable the server to support development with some helper tools: You can now request debug information with statistics on how long execution of a command took, how long it took to serialize the JSON files, and how big the serialized JSON string is. Also allow to dump results into a file.
* server-mode: Report Messages from cmake to clientsTobias Hunger2016-09-201-1/+37
| | | | | Pass messages sent from cmake via Error(...) or Message(...) on to clients.
* server-mode: Automate progress reportingTobias Hunger2016-09-201-2/+18
| | | | | Wire up cmake::SetProgressUpdate to do progress reporting via the cmake server.
* cmake-server: Use consistent constant naming styleTobias Hunger2016-09-201-22/+21
|
* server-mode: Add --experimental flagTobias Hunger2016-09-201-4/+15
| | | | | | | | Allow for experimental cmProtocolVersions, which will only ever get listed if the server was started with the (undocumented) "--experimental" flag. Mark current protocol version 1.0 as experimental.
* cmake-server: Implement ServerProtocol 1.0Tobias Hunger2016-09-191-0/+3
| | | | | | | | | | | | | | Enable the initial handshake of the client to complete the connection to the server. The handshake sets the protocol version that client and server will use to talk to each other. The only way to change this is to quit the server and start over. CMake specific information is also set during the initial handshake. Since cmake so far never had to change basic information about any project while running, it was decided to keep this information static and require a restart of the cmake server to change any of these.
* cmake-server: Bare-bones server implementationTobias Hunger2016-09-191-0/+352
Adds a bare-bones cmake-server implementation and makes it possible to start that with "cmake -E server". Communication happens via stdin/stdout for now. Protocol is based on Json objects surrounded by magic strings ("[== CMake Server ==[" and "]== CMake Server ==]"), which simplifies Json parsing significantly. This patch also defines an interface used to implement different versions of the protocol spoken by the server, but does not include any protocol implementaiton.