aboutsummaryrefslogtreecommitdiffstats
path: root/win/rfb_win32/Win32Util.cxx
Commit message (Collapse)AuthorAgeFilesLines
* 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 base exception classes to core libraryPierre Ossman2025-02-251-4/+4
| | | | | | | 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-131-1/+6
| | | | | | | Make it clearer what is protocol handling and what is just general plumbing. This is one step of several.
* Use standard library naming for exceptionsPierre Ossman2024-11-061-3/+3
| | | | | This makes things more consistent since we mix with the standard library exceptions so often.
* Use standard exception classesPierre Ossman2024-11-061-1/+1
| | | | | Use the more specific already included exception classes for common errors to keep things more understandable.
* Split SystemException to handle WindowsPierre Ossman2024-10-091-3/+3
| | | | | | | | | | | | | 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-4/+4
| | | | | It's more readable than 0, and a bit safer than NULL, so let's try to follow modern norms.
* Remove "str" prefix from string helpersPierre Ossman2023-02-041-1/+1
| | | | | 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-4/+4
| | | | | Let's use a more common type instead of something homegrown. Should be more familiar to new developers.
* Free char buffer directlyPierre Ossman2023-02-041-0/+5
| | | | | It's extreme overkill to inherit from CharArray just to get the automatic freeing of the buffer when the object is destroyed.
* Make strSplit() simpler and saferPierre Ossman2023-02-041-5/+0
| | | | | | | 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-3/+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.
* Get rid of TCHAR magicPierre Ossman2023-02-041-11/+11
| | | | | We never use Windows' "UNICODE" mode anyway, so let's get rid of this complexity.
* Move hex conversion helpers to utilPierre Ossman2023-02-041-3/+3
| | | | | These are used here and there so let's make them more general rather than hiding them in the stream classes.
* Be consistent in including config.hPierre Ossman2021-12-301-0/+4
| | | | | | 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.
* printf does not accept CStr()sPeter Åstrand2008-12-101-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3366 3789f03b-4d11-0410-bbf8-ca57d06f2519
* MinGW tweak: Constructs such as:Peter Åstrand2008-12-091-1/+1
| | | | | | | | | | | | | | | | | | CharArray somevariable = "somestring" ...are not allowed. It seems like MSVC does not correctly check accessibility for temporaries. Chapter 12.2 of ISO/IEC 14882:2003(E): > Even when the creation of the temporary object is avoided (12.8), > all the semantic restrictions must be respected as if the temporary > object was created. [Example: even if the copy constructor is not > called, all the semantic restrictions, such as accessibility > (clause 11), shall be satisfied. ] git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3344 3789f03b-4d11-0410-bbf8-ca57d06f2519
* We are using printf - stdio.h must be includedPeter Åstrand2008-12-021-0/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3278 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Migrating to new directory structure adopted from the RealVNC's source tree. ↵Constantin Kaplinsky2006-05-251-0/+114
More changes will follow. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@591 3789f03b-4d11-0410-bbf8-ca57d06f2519