aboutsummaryrefslogtreecommitdiffstats
path: root/common
Commit message (Collapse)AuthorAgeFilesLines
* Fix infinite update caused by b64dbf2Pierre Ossman2015-06-231-1/+1
| | | | | | | | The bug fix in b64dbf2 didn't account for the proper request region in the case of continuous updates. Make sure we use the proper variable for which region we've sent updates for. (cherry picked from commit 3c56d4f3c7fc2d706acd114d1abb04e9a338dbea)
* Fix some bad signed/unsigned mismatchesPierre Ossman2015-06-171-1/+1
|
* Avoid losing updates on partial requestsPierre Ossman2015-06-091-1/+4
| | | | | | A request may be for only part of the frame buffer, meaning we cannot discard all changes just because we've send out an update. There might still be modified areas remaining that haven't been requested yet.
* Clean up server rendered cursor logicPierre Ossman2015-06-092-17/+27
| | | | | | | Variables were reused a bit too heavily and it was possible to get the logic at a point where the server would try to render a cursor where it wasn't needed, and the empty update rect would cause a crash. Clear things up by introducing some more explicit variables.
* Change fillRect() to take a buffer instead of a pixelPierre Ossman2015-06-058-20/+24
| | | | | | | | There has been some confusion if fillRect() should accept a buffer or a pixel. This can cause misrendering if your data is not in the native endian order. A buffer makes more sense here though, and is what most of the callers are already assuming, so change the API to follow that.
* Fix Winsock errno code overlapPierre Ossman2015-05-293-15/+3
| | | | | Some Winsock errno:s conflict with the standard ones. Try to restrict the redefines to things relevant for sockets.
* Only include syslog logger on Unix systemsPierre Ossman2015-05-041-1/+4
|
*-. Merge branches 'noreset' and 'syslog' of https://github.com/michalsrb/tigervncPierre Ossman2015-05-044-4/+115
|\ \
| | * Remove hardcoded "Xvnc" in syslog logger.Michal Srb2015-04-241-1/+1
| | |
| | * Add syslog logger.Michal Srb2015-04-103-0/+106
| | |
| | * Expose log levels from LogWriter.Michal Srb2015-04-101-4/+9
| |/
* | Remove parameter "hasBeenSet" logicPierre Ossman2015-04-272-16/+1
| | | | | | | | | | It doesn't really make sense anymore given that settings might come from the GUI or configuration and not only the command line.
* | Clarify Windows SO_REUSEADDR exceptionPierre Ossman2015-04-231-1/+6
| |
* | Repair SO_REUSEADDRPierre Ossman2015-04-231-5/+5
|/ | | | | SO_REUSEADDR needs to be set before we call bind() for it to have any effect. It got shuffled around in e4d9726.
* Require getaddrinfo() on all systemsPierre Ossman2015-03-172-128/+1
| | | | | Every reasonably current system support getaddrinfo() so get rid of the legacy fallbacks.
* Do not look at errno for getaddrinfo() errorsPierre Ossman2015-03-171-2/+4
|
* Replacement for dup() on WindowsPierre Ossman2015-03-171-2/+19
| | | | It doesn't work on sockets, which require a bit more care.
* Fix proper socket headers for Win32Pierre Ossman2015-03-171-0/+6
|
* Resurrect TcpListener::getMyAddresses()Pierre Ossman2015-03-172-0/+59
| | | | | | | | | | | 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
* Make sure Win32 sockets are available in new listening APIPierre Ossman2015-03-171-0/+5
|
* AI_NUMERICSERV is not available on some systemsPierre Ossman2015-03-171-0/+5
|
* Make sure socket errno defines are available for Win32Pierre Ossman2015-03-171-0/+4
|
* family variable can be unset when matching any addressPierre Ossman2015-03-171-0/+2
|
* Merge branch 'multisocket-rebased' of https://github.com/twaugh/tigervncPierre Ossman2015-03-172-199/+401
|\
| * IPv6 support for TcpFilter.Tim Waugh2015-03-132-57/+201
| |
| * Fixed IPv6 support.Tim Waugh2015-03-132-139/+197
| | | | | | | | | | | | | | | | | | | | | | | | The TcpListener constructor now takes a 'struct sockaddr*' instead of a string, and the createTcpListeners function creates TcpListener instances for an address based on the results from getaddrinfo(). The XserverDesktop class now takes a list of TcpListener instances for each of the RFB and HTTP sockets. The TcpListener::closeFd member variable is not used and has been removed.
| * Whitespace changes only.Tim Waugh2015-03-111-4/+4
| |
* | Merge branch 'upreqs' of https://github.com/CendioOssman/tigervncPierre Ossman2015-03-1243-12705/+87
|\ \ | |/ |/| | | | | | | Conflicts: contrib/packages/rpm/el5/SPECS/tigervnc.spec vncviewer/Viewport.cxx
| * Drop bundled zlibPierre Ossman2015-02-0329-12355/+0
| | | | | | | | | | We're not doing a sufficient job of keeping this updated so list it as an external requirement instead.
| * Add parameter to override GnuTLS priorityPierre Ossman2015-01-294-21/+48
| |
| * Raise GnuTLS requirements to 3.xPierre Ossman2015-01-2912-349/+59
| | | | | | | | | | | | This allows us to simplify things by getting rid of some old compatibility code. People should really be using current versions of GnuTLS anyway to stay secure.
* | Give CharArray a printf style method to ease automatic allocationPierre Ossman2015-03-032-0/+31
| |
* | The PAM callback is slightly different on SolarisPierre Ossman2015-03-031-1/+6
| |
* | Add extra parentheses to avoid and/or priority ambiguityPierre Ossman2015-03-031-1/+1
| |
* | Reorder class initialiser list to match what actually happensPierre Ossman2015-03-032-4/+5
| |
* | Make Rect::area() signed, just like Rect::width()/height()Pierre Ossman2015-03-031-1/+1
| | | | | | | | Makes it more sane what type to use when interacting with this class.
* | Fix mismatches between format string and argumentsPierre Ossman2015-03-031-1/+1
| |
* | Shorten stats from EncodeManager using SI/IEC prefixesPierre Ossman2015-03-033-8/+60
| | | | | | | | Also avoids %lld which isn't supported on Windows.
* | A switch() needs to handle every value in an enumPierre Ossman2015-03-031-0/+4
| |
* | Switch to unsigned parameters for ExtendedDesktopSize handlerPierre Ossman2015-03-032-3/+3
| | | | | | | | | | The constants used here are unsigned so it makes more sense that the parameters are as well.
* | Fix bad signed/unsigned comparisonsPierre Ossman2015-03-036-7/+7
| | | | | | | | | | Either by casting, or switching to a more appropriate type for the variable.
* | Make sure Exceptions do not use unsafe format stringsPierre Ossman2015-03-037-24/+17
| |
* | Tag the Exception constructor as a printf functionPierre Ossman2015-03-031-1/+7
| | | | | | | | | | This allows the compiler to analyse the format strings and arguments for correctness.
* | Remove unused variablesPierre Ossman2015-03-036-9/+1
| |
* | Handle no useful address types from getaddrinfo()Pierre Ossman2015-03-031-0/+3
| |
* | The compiler cannot figure out if this is assigned properlyPierre Ossman2015-03-031-0/+4
| | | | | | | | | | The logic is a bit complex so we're going to have to silence the warning with this explicit assignment.
* | Merge branch 'perf' of https://github.com/CendioOssman/tigervncPierre Ossman2015-02-1318-138/+454
|\ \
| * | Default compression level should be interpreted as highPierre Ossman2015-02-131-1/+1
| | |
| * | Be more aggressive in finding solid rectanglesPierre Ossman2015-02-132-74/+96
| | | | | | | | | | | | | | | The previous FIXME was incorrect. The old code did in fact continue looking over the entire area. This commit restores that old behaviour.
| * | Move encoder statistics into EncodeManager from SMsgWriterPierre Ossman2015-02-134-47/+168
| | | | | | | | | | | | It knows more details so it can track things better.