aboutsummaryrefslogtreecommitdiffstats
path: root/win/winvnc
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Remove legacy Windows codePierre Ossman2016-01-122-10/+14
| | | | | We have lots of code that deals with Windows versions that we no longer support anyway. Clean out all of this old cruft.
* Shorten service identifierPierre Ossman2016-01-121-1/+1
| | | | | The identifier is used to compute the registry path, and should ideally be kept short and without spaces.
* Provide description for servicesPierre Ossman2016-01-121-0/+1
| | | | | | The argument named "desc" was not actually the description, but rather the short "display name". Add handling for the actual description to reduce confusion.
* Clean up listening sockets on errorPierre Ossman2015-09-291-1/+5
|
* Return TcpListener pointers rather than objectsPierre Ossman2015-09-292-9/+9
| | | | | | It is easier to control object life time and avoid magical socket duplication by having a single TcpListener object to pass around. We have to be more careful about deleting the object though.
* Improve TigerVNC branding in WinVNCPierre Ossman2015-05-042-3/+3
| | | | | Avoids conflicts with the original RealVNC implementation, or any other forks of that code.
* Convert WinVNC to the new TcpListener APIPierre Ossman2015-03-173-19/+42
|
* Local address change events are not socket specificPierre Ossman2015-03-172-4/+4
|
* Resurrect TcpListener::getMyAddresses()Pierre Ossman2015-03-171-2/+2
| | | | | | | | | | | It is needed by WinVNC, but got removed in 892d10a70. Also fix a couple of issues: - Use getnameinfo() in order to be compatible with Windows XP - Make it static since it doesn't use a specific socket - Respect UseIPv4 and UseIPv6 - Flags for getaddrinfo() that match binding code - Dummy service value for Windows compatibility