aboutsummaryrefslogtreecommitdiffstats
path: root/win/vncconfig/Legacy.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Subclass exceptions from std::exceptionPierre Ossman2024-11-061-5/+5
| | | | | Make sure our exceptions are part of the standard exception class hierarchy.
* Use what() to access exception descriptionPierre Ossman2024-11-061-3/+3
| | | | Harmonize with the standard C++ exceptions.
* Split SystemException to handle WindowsPierre Ossman2024-10-091-1/+1
| | | | | | | | | | | | | Windows has (at least) two error namespaces, both errno and GetLastResult(). These overlap, so it is important we keep track of which one we are dealing with. To make things extra problematic, the BSD socket API normally uses errno, but on Windows it has been mapped in to the GetLastResult() namespace. Try to keep better control of this by using separate classes for the namespaces.
* Use nullptr in all C++ codePierre Ossman2024-06-241-6/+6
| | | | | It's more readable than 0, and a bit safer than NULL, so let's try to follow modern norms.
* Remove unused rfb/util.h includesPierre Ossman2023-02-041-0/+1
| | | | | | | | 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-041-2/+2
| | | | | 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 instead of CharArrayPierre Ossman2023-02-041-17/+9
| | | | | Let's use a more common type instead of something homegrown. Should be more familiar to new developers.
* Make strSplit() simpler and saferPierre Ossman2023-02-041-16/+12
| | | | | | | Get rid of all the magical re-allocation and shuffling and instead just return a new set of strings that is fully splitted. Will consume a bit more memory, but is a lot safer to use as there is less confusion about ownership of memory.
* Return std::string instead of dynamic allocationsPierre Ossman2023-02-041-4/+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 fixed size character bufferPierre Ossman2023-02-041-10/+10
| | | | | We know the needed space here, so let's keep it simple with a constant size string buffer.
* Get rid of TCHAR magicPierre Ossman2023-02-041-54/+54
| | | | | We never use Windows' "UNICODE" mode anyway, so let's get rid of this complexity.
* Return std::vector instead of dynamic allocationPierre Ossman2023-02-041-4/+3
| | | | | This makes memory management more clear and robust when using these helper functions.
* Remove Java web serverPierre Ossman2018-10-091-4/+0
| | | | | Applets don't work anymore so remove everything that has to do with serving them.
* 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.
* Remove legacy Windows codePierre Ossman2016-01-121-2/+1
| | | | | We have lots of code that deals with Windows versions that we no longer support anyway. Clean out all of this old cruft.
* Make winvnc4 and Windows vncconfig compilable via MinGW.Adam Tkac2009-10-121-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3913 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Migrating to new directory structure adopted from the RealVNC's source tree. ↵Constantin Kaplinsky2006-05-251-0/+248
More changes will follow. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@591 3789f03b-4d11-0410-bbf8-ca57d06f2519