aboutsummaryrefslogtreecommitdiffstats
path: root/win/winvnc
Commit message (Collapse)AuthorAgeFilesLines
* Remove the network::SocketServer interface.Carlos Santos2024-04-262-4/+4
| | | | | | | Move these RFB specific things to rfb::VNCServer, for clarity. Signed-off-by: Pierre Ossman <ossman@cendio.se> Signed-off-by: Carlos Santos <casantos@redhat.com>
* Move the AccessRights type and constants to the rfb namespaceCarlos Santos2024-04-231-15/+15
| | | | | | | | | 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>
* Update copyright year to 2024Samuel Mannehed2024-01-091-1/+1
|
* Update copyright year to 2023Samuel Mannehed2023-07-201-1/+1
|
* 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.
* Remove unused rfb/util.h includesPierre Ossman2023-02-042-0/+2
| | | | | | | | These files don't use anything from this header, so remove the include. This exposes some missing includes in other places, though. So add an explicit include in the files that were relying on an indirect inclusion.
* Remove "str" prefix from string helpersPierre Ossman2023-02-042-4/+4
| | | | | This matches the naming in STL, which is what we are mostly mimicing now that we are using std::string for these functions.
* Use std::string for string memory managementPierre Ossman2023-02-041-6/+5
| | | | | Avoids a bit of complexity by delegating that handling to a string object.
* Use std::string instead of CharArrayPierre Ossman2023-02-048-43/+39
| | | | | Let's use a more common type instead of something homegrown. Should be more familiar to new developers.
* Return std::string instead of dynamic allocationsPierre Ossman2023-02-041-10/+9
| | | | | | 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.
* Return static char buffer from some methodsPierre Ossman2023-02-041-1/+1
| | | | | | | | | This mimics how some system functions (like inet_ntop()) work, and avoids complexity around ownership of the returned string buffer. The downside is that the string must be consumed directly as it will be overwritten on the next call, but that is not an issue with the current usage.
* Use string literal instead of dynamic bufferPierre Ossman2023-02-042-8/+8
| | | | | These don't need to be changed, so let's just keep it simple with a constant string literal.
* Use StringParameters directlyPierre Ossman2023-02-041-2/+1
| | | | | We don't need to make extra copies of the string in most cases, so let's simplify the code and access the string directly when we can.
* Get rid of TCHAR magicPierre Ossman2023-02-0410-52/+48
| | | | | We never use Windows' "UNICODE" mode anyway, so let's get rid of this complexity.
* Work around -Wcast-function-typePierre Ossman2023-01-051-1/+1
| | | | | That warning doesn't play well with Windows' GetProcAddress(), so add some extra casting to work around it.
* Explicitly mark switch case fall throughPierre Ossman2023-01-051-0/+1
| | | | | This allows us to separate accidental fall through from explicit ones, which allows us to turn on such checks in the compiler.
* Explicitly mark unused parametersPierre Ossman2023-01-043-4/+4
| | | | | This allows us to separate accidentally unused, from explicitly unused parameters, which allows us to turn on such checks in the compiler.
* Don't do access checks on early clientsPierre Ossman2022-11-071-3/+5
| | | | | They don't get access bits until they've been authenticated, so avoid doing any checks on clients in those early states.
* Remove 32-/64-bit distinctionsPierre Ossman2022-01-211-7/+2
| | | | | The migration from 32-bit to 64-bit has long passed. Let's get rid of all distinctions as native applications it the norm now.
* Update copyright year to 2022Pierre Ossman2022-01-051-1/+1
|
* Be consistent in including config.hPierre Ossman2021-12-307-0/+29
| | | | | | 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.
* Update copyright year to 2021Pierre Ossman2021-01-251-1/+1
|
* Use standard install dir variable namesPierre Ossman2020-03-121-1/+1
| | | | | This makes our builds directly compatible with most distributions without packagers/users having to specify extra flags.
* Update copyright year to 2020Pierre Ossman2020-01-161-1/+1
|
* Update visible copyright years to 2019Samuel Mannehed2019-02-271-1/+1
|
* Merge branch 'exittimer' of https://github.com/CendioOssman/tigervncPierre Ossman2018-11-091-1/+3
|\
| * Properly terminate server on timeoutsPierre Ossman2018-11-091-1/+3
| | | | | | | | | | | | Do a proper cleanup when one of the termination timeouts trigger rather than just exiting on the spot. This makes sure we don't leave stray stuff around, e.g. unix socket files.
* | Merge branch 'vncserver' of https://github.com/CendioOssman/tigervncPierre Ossman2018-11-097-37/+237
|\|
| * Stop trying to send ListConnInfo via WM_COPYDATAPierre Ossman2018-11-092-3/+3
| | | | | | | | | | | | Windows tries to do a copy of it, and it is too complex to survive that. Just reference the object directly as we know the source of the message here.
| * Move ListConnInfo to WinVNC directoryPierre Ossman2018-11-096-19/+221
| | | | | | | | | | It is functionality specific to WinVNC, so move the code there to make things more clear.
| * Encapsulate client handling in VNCServerSTPierre Ossman2018-10-261-0/+1
| | | | | | | | | | | | Removed the last parts of VNCSConnectionST's back door in to VNCServerST and let the parent class fully handle coordination of clients, and access to the desktop.
| * Remove QueryConnectionHandlerPierre Ossman2018-10-102-5/+3
| | | | | | | | | | Make things simpler by making this a part of the SDesktop interface that always needs to be implemented.
| * Force common flow of connection queriesPierre Ossman2018-10-092-11/+10
| | | | | | | | | | | | Force queryConnection() to always call back to approveConnection() rather than return special values. This makes the flow easier to follow as it will be the same in all cases.
* | Merge branch 'nojava' of https://github.com/CendioOssman/tigervncPierre Ossman2018-10-268-227/+2
|\|
| * Remove Java web serverPierre Ossman2018-10-098-227/+2
| | | | | | | | | | Applets don't work anymore so remove everything that has to do with serving them.
* | Change to https for tigervnc URLPierre Ossman2018-10-192-2/+2
|/ | | | Our main web site now supports https, so update all references.
* Merge branch 'unix' of https://github.com/CendioOssman/tigervncPierre Ossman2018-05-292-5/+5
|\
| * Use abstract SocketListener classPierre Ossman2018-05-042-5/+5
| | | | | | | | | | Makes the code more general and not directly tied to specifically TCP sockets.
* | Catch exceptions by referencePierre Ossman2018-05-291-2/+2
|/ | | | | We use polymorphic exception objects, so catching by value invokes the copy constructor and stuff that we don't really want.
* Update visible copyright year to 2018Samuel Mannehed2018-02-081-1/+1
|
* Rename README.txt to README.rst and convert to reStructuredTextPeter Åstrand (astrand)2018-01-311-1/+1
|
* Configuration::listParams wants width/nameWidth; not ConfigurationObjectPeter Åstrand (astrand)2017-11-081-1/+1
|
* Get rid of getFbSize()/getDesktopSize() in commonPierre Ossman2017-09-224-5/+11
| | | | It was only used by WinVNC, so push it there instead.
* Update visible copyright year to 2017Samuel Mannehed2017-03-201-1/+1
|
* spelling fixesklemens2017-01-281-1/+1
|
* Don't fail old service cleanupPierre Ossman2016-08-181-2/+10
|
* Replace Windows specific thread handlingPierre Ossman2016-07-076-41/+84
| | | | Use the platform independent primitives instead.
* Clean up old WinVNC servicesPierre Ossman2016-06-131-0/+5
| | | | | | We've changed the service name a couple of times for various reasons. Make sure the old versions are removed when the new one is registered.
* Don't reference Xregion unless used directlyPierre Ossman2016-05-131-1/+1
|
* change the Copyright yearBojan Memetovic2016-03-181-1/+1
|