summaryrefslogtreecommitdiffstats
path: root/common
Commit message (Collapse)AuthorAgeFilesLines
* Init socket subsystem before parsing filtersPierre Ossman2015-12-071-0/+2
| | | | | | | | Parsing a filter might be the first thing we do so we need to make sure the socket subsystem is running so that we can look up names. (cherry picked from commit 398a6f43327ea3a8c1e58ed77f34fd4409cccb9d)
* Flush entire JPEG buffer, ignoring statePierre Ossman2015-10-161-1/+1
| | | | | | libjpeg doesn't update the buffer state before calling the empty_output_buffer() callback so we need to flush everything, not just the apparent size.
* Don't shadow member variablePierre Ossman2015-09-291-1/+1
|
* Avoid dropping const qualifier needlesslyPierre Ossman2015-09-291-1/+1
|
* Return TcpListener pointers rather than objectsPierre Ossman2015-09-292-82/+50
| | | | | | 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.
* Return correct error code from bind()Pierre Ossman2015-09-291-1/+2
| | | | | Closing the socket might overwrite errno so we need to save its value.
* Don't leak socket on setsockopt() errorsPierre Ossman2015-09-291-2/+5
|
* Track statistics for CopyRectPierre Ossman2015-09-222-0/+32
|
* Add keyboard debug log to serversPierre Ossman2015-08-311-4/+21
| | | | | Makes it easier to troubleshoot keyboard issues by printing exactly what key events the server is getting from the client.
* Log which addresses connection attempts are made againstPierre Ossman2015-07-301-0/+6
|
* Properly report connect error codesPierre Ossman2015-07-301-11/+13
| | | | | The logic was flawed and would treat all connect errors as if there were no addresses found.
* 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.
* 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
| |