aboutsummaryrefslogtreecommitdiffstats
path: root/win/rfb_win32/SocketManager.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' of https://github.com/madnicendio/tigervncPierre Ossman2024-11-221-4/+4
|\
| * Capitalize first letter in log, exception & errorMadeleine Nilsson2024-11-211-4/+4
| | | | | | | | The reason for this is to keep a consistency through out the project.
* | Use standard library naming for exceptionsPierre Ossman2024-11-061-5/+5
| | | | | | | | | | This makes things more consistent since we mix with the standard library exceptions so often.
* | Use standard exception classesPierre Ossman2024-11-061-5/+7
| | | | | | | | | | 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-061-2/+2
|/ | | | Harmonize with the standard C++ exceptions.
* Consistently use SocketException for socket errorsPierre Ossman2024-10-091-5/+5
| | | | | | The behaviour is not consistent as Windows doesn't use errno for socket errors, but Unix systems do. Always use the same exception to keep things somewhat sane.
* 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.
* Use nullptr in all C++ codePierre Ossman2024-06-241-2/+2
| | | | | It's more readable than 0, and a bit safer than NULL, so let's try to follow modern norms.
* Merge branch 'present' of github.com:CendioOssman/tigervncPierre Ossman2024-06-191-3/+3
|\
| * Stop treating "0" as "no timeouts"Pierre Ossman2024-06-191-1/+3
| | | | | | | | | | It is much more sane to treat "0" as "a timer is ready NOW", so let's change to using -1 as the invalid timeout value.
| * Remove unneeded iterationPierre Ossman2024-06-191-3/+1
| | | | | | | | This should have been done in a4308c9.
* | Remove the network::SocketServer interface.Carlos Santos2024-04-261-4/+8
|/ | | | | | | 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>
* Use std::string instead of CharArrayPierre Ossman2023-02-041-0/+1
| | | | | Let's use a more common type instead of something homegrown. Should be more familiar to new developers.
* 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.
* Change streams to be asynchronousPierre Ossman2020-05-211-5/+32
| | | | | | | | | | 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).
* Get rid of SocketServer::checkTimeouts()Pierre Ossman2018-11-091-1/+2
| | | | | | It doesn't belong on each socket server object as timers are global. Force implementations to call the Timer system directly instead, avoiding any middle men.
* Move ListConnInfo to WinVNC directoryPierre Ossman2018-11-091-1/+28
| | | | | It is functionality specific to WinVNC, so move the code there to make things more clear.
* Move socket write event handling in to the RFB corePierre Ossman2016-04-291-1/+1
| | | | | | What to do when a socket is writeable should be handled in the RFB core code as there may be other events we want to fire off when this happens.
* Local address change events are not socket specificPierre Ossman2015-03-171-1/+1
|
* Fix unsafe usage of the logging functions.Pierre Ossman2012-04-261-3/+3
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4905 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Removed unused variables.Peter Åstrand2010-02-101-2/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3978 3789f03b-4d11-0410-bbf8-ca57d06f2519
* MinGW tweak: ISO C++ forbids declaration of `requestAddressChangeEvents' ↵Peter Åstrand2008-12-091-1/+1
| | | | | | with no type. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3332 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Migrating to new directory structure adopted from the RealVNC's source tree. ↵Constantin Kaplinsky2006-05-251-0/+213
More changes will follow. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@591 3789f03b-4d11-0410-bbf8-ca57d06f2519