aboutsummaryrefslogtreecommitdiffstats
path: root/tests/perf
Commit message (Collapse)AuthorAgeFilesLines
* Don't force everyone to implement setCursorPos()Pierre Ossman12 days2-10/+0
| | | | | You need to activate the feature by setting supportsCursorPosition, so there is no point in forcing everyone to implement the handler.
* Properly store cursor in ServerParams objectPierre Ossman12 days2-10/+0
| | | | | | We already had a field in the ServerParams structure, but we never actually stored anything in it. Let's fix that so the cursor behaves like other state we get from the server.
* Make CMsgHandler/SMsgHandler pure interfacesPierre Ossman13 days1-0/+12
| | | | | | It's a bit confusing that some handling is done in CMsgHandler/SMsgHandler, and some handling is done in CConnection/SConnection.
* Mark internal connection callbacks as protectedPierre Ossman13 days1-1/+1
| | | | | | These are just for interactions internally within the connection objects and their sub classes. Mark them as protected to make the API more clear, and to avoid accidental use.
* Rename core/util to core/stringPierre Ossman2025-02-251-1/+1
| | | | | It's just string helper functions here, so let's get rid of the catch-all name for this module.
* Move time utilities to separate filePierre Ossman2025-02-251-0/+1
| | | | Let's clear things up by categorizing our utility functions.
* Move configuration to core libraryPierre Ossman2025-02-252-12/+13
| | | | | | | Make it clearer what is protocol handling and what is just general plumbing. This is one step of several.
* Move base exception classes to core libraryPierre Ossman2025-02-253-4/+0
| | | | | | | Make it clearer what is protocol handling and what is just general plumbing. This is one step of several.
* Move utility functions to core libraryPierre Ossman2025-02-132-4/+5
| | | | | | | Make it clearer what is protocol handling and what is just general plumbing. This is one step of several.
* Move basic data types to core libraryPierre Ossman2025-02-133-13/+13
| | | | | | | Make it clearer what is protocol handling and what is just general plumbing. This is one step of several.
* Use initializer lists for basic data typesPierre Ossman2025-02-131-1/+1
| | | | | | | | Try to keep the code more compact for the simple things where the type should be obvious from the context. Helps us avoid line wrapping. Also remove explicit conversions to Region where the compiler is able to figure it out by itself, again to reduce line length.
* Reduce header #include:sPierre Ossman2025-02-131-3/+1
| | | | | Make compile times faster by reducing the number of headers included in other headers.
* Consolidate argument parsing in single functionPierre Ossman2025-01-101-9/+7
| | | | | Avoid duplicating this complexity everywhere and make sure all commands get the same handling and fixes.
* Merge branch 'master' of https://github.com/madnicendio/tigervncPierre Ossman2024-11-221-2/+2
|\
| * Standardize log message prefix formatMadeleine Nilsson2024-11-111-2/+2
| | | | | | | | The reason for this is to keep a consistency through out the project.
* | Use standard library naming for exceptionsPierre Ossman2024-11-062-2/+2
| | | | | | | | | | This makes things more consistent since we mix with the standard library exceptions so often.
* | Use standard exception classesPierre Ossman2024-11-062-4/+4
| | | | | | | | | | Use the more specific already included exception classes for common errors to keep things more understandable.
* | Subclass exceptions from std::exceptionPierre Ossman2024-11-061-2/+2
| | | | | | | | | | Make sure our exceptions are part of the standard exception class hierarchy.
* | Use what() to access exception descriptionPierre Ossman2024-11-062-4/+4
|/ | | | Harmonize with the standard C++ exceptions.
* Move getUserPasswd()/showMsgBox() to CConnectionKang Lin2024-08-302-0/+23
| | | | | Problems with the original code: A process can only establish one connection. After modification, multiple connections can be supported.
* Remove unused setPixelFormat() callbackPierre Ossman2024-08-122-8/+1
| | | | | This was made obsolete in dd45b44 when we extended the serverInit() callback.
* Avoid shadowing variablesPierre Ossman2024-06-241-4/+4
| | | | | It's a source of confusion and possibly bugs to reuse the same variable name for multiple things.
* Mark overridden virtual functionsPierre Ossman2024-06-243-34/+34
| | | | | Use the new "override" keyword to properly differentiate between new virtual methods, and existing virtual methods being overridden.
* Use nullptr in all C++ codePierre Ossman2024-06-244-20/+20
| | | | | It's more readable than 0, and a bit safer than NULL, so let's try to follow modern norms.
* vncconfig: add option to force view-only remote client connectionsCarlos Santos2024-04-261-0/+3
| | | | | | | | Specifies that the server must ignore all keyboard or mouse events sent by the client. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2180903 Signed-off-by: Carlos Santos <casantos@redhat.com>
* Move the AccessRights type and constants to the rfb namespaceCarlos Santos2024-04-231-2/+2
| | | | | | | | | They must belong to the rfb namespace, not to the SConnection class. Also add an AccessNone constant, since it's better to use a mnemonic symbol rather than zero to initialize the accessRights members. Signed-off-by: Carlos Santos <casantos@redhat.com>
* Prefer target_include_directories()Pierre Ossman2023-03-311-2/+2
| | | | | It is more specific, and it properly sets up propagation when include directories also need to be used further down a dependency chain.
* Return std::string instead of dynamic allocationsPierre Ossman2023-02-041-6/+3
| | | | | | We mostly use classical C strings, but the memory management around them can get confusing and error prone. Let's use std::string for the cases where we need to return a newly allocated string.
* Use stdint typesPierre Ossman2023-02-014-23/+23
| | | | | Avoid having our own custom stuff and instead use the modern, standard types, for familiarity.
* Explicitly mark unused parametersPierre Ossman2023-01-044-10/+13
| | | | | This allows us to separate accidentally unused, from explicitly unused parameters, which allows us to turn on such checks in the compiler.
* Mark system include paths correctlyPierre Ossman2023-01-041-2/+2
| | | | | This makes sure the compiler doesn't complain about problems in those files.
* Move include_directories() to proper placesPierre Ossman2022-08-251-2/+1
| | | | We should scope these as narrowely as possible to avoid side effects.
* Add missing FLTK include statementsAlbrecht Schlosser2022-07-071-0/+1
| | | | Add also missing <stdlib.h> where required.
* Fix up ffmpeg header and library handlingPierre Ossman2022-06-071-1/+0
| | | | | FFMPEG is needed by the RFB library, so all the details about it should only be applied there and not for other components.
* Avoid temporary cmake variablesPierre Ossman2022-06-071-8/+7
| | | | | Modern cmake has better support for adding source files and libraries incrementally, so let's use that to clean things up.
* H264 DecoderVladimir Sukhonosov2022-01-211-0/+1
| | | | Linux implementation using ffmpeg
* Be consistent in including config.hPierre Ossman2021-12-305-0/+20
| | | | | | The generally recommended way is to include it from source files, not headers. We had a mix of both. Let's try to be consistent and follow the recommended way.
* Allow building with -DBUILD_VIEWER=OFFAlex Richardson2021-07-151-23/+25
| | | | | Without this change I get CMake errors due to use of ${FLTK_INCLUDE_DIR} and references to the non-existent vncviewer target.
* Support the VMware Cursor Position extension on vncviewerlhchavez2021-03-112-0/+10
| | | | | | | | This change makes it possible for re-synchronizing the remote cursor on the vncviewer when in fullscreen mode. This is done by locally moving the cursor position to what the server thinks it should be. Now SDL games should work!
* Merge branch 'noblock' of https://github.com/CendioOssman/tigervncPierre Ossman2021-01-192-13/+14
|\
| * Change streams to be asynchronousPierre Ossman2020-05-212-3/+10
| | | | | | | | | | | | | | | | | | | | Major restructuring of how streams work. Neither input nor output streams are now blocking. This avoids stalling the rest of the client or server when a peer is slow or unresponsive. Note that this puts an extra burden on users of streams to make sure they are allowed to do their work once the underlying transports are ready (e.g. monitoring fds).
| * Simplify stream availability handlingPierre Ossman2020-05-212-10/+4
| | | | | | | | | | Just have a simply number of bytes argument to avoid a lot of complexity.
| * Add stream avail() methodsPierre Ossman2020-05-212-4/+4
| | | | | | | | | | Makes it more readable to write code that needs to know how much data/space is available in a stream.
* | Use mingw's stdio routines where neededPierre Ossman2020-05-311-7/+4
|/ | | | It allows us to use the more standard format specifiers.
* Fix framebuffer setup in encperfPierre Ossman2020-02-271-2/+3
| | | | We adapted to the wrong new callback in a previous commit.
* Provide dummy output for dummy client connectionsPierre Ossman2020-02-272-2/+54
| | | | | The CConnection base class wants to be able to write things these days, so we need to provide it a place to do so.
* Use size_t for lengths in stream objectsPierre Ossman2019-11-151-5/+5
| | | | | | | | Provides safety against them accidentally becoming negative because of bugs in the calculations. Also does the same to CharArray and friends as they were strongly connection to the stream objects.
* Split test programs to benchmarking and unit testsPierre Ossman2019-09-2513-0/+1775
They have very different purpose, so make things easier to work with by having multiple directories.