summaryrefslogtreecommitdiffstats
path: root/java/com/tigervnc/rdr
Commit message (Collapse)AuthorAgeFilesLines
* Fixes for erros in java hextile/zrle decodersBrian P. Hinz2018-01-167-142/+121
| | | | | | Various errors exposed when connecting to RealVNC servers on alternative platforms (ARM, SPARC). SSLEngineManager was also cleaned up but most of the changes are cosmetic.
* Method cleanup.Brian P. Hinz2016-12-102-14/+12
| | | | Sync various methods and filenames with C++ versions
* Added a method for copying between streamsBrian P. Hinz2016-10-201-0/+11
|
* Added a method for reading into a ByteBufferBrian P. Hinz2016-10-201-0/+12
|
* Suppress/eliminate JDK warningsBrian P. Hinz2015-12-262-6/+26
|
* Don't exit completely if single viewer declines server certBrian P. Hinz2015-09-201-0/+30
| | | | | | Prevents viewer from exiting completely just because user declined to trust the server certificate for a single connection. Copied from TurboVNC.
* Major overhaul of SSLEngineManagerBrian P. Hinz2014-11-022-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | The SSLEngineManager was basically an abomination. The work is now done as it should be, with the buffers being fed and the engine deciding when data is consumed or produced. The engine should be much more robust now as well. Additionally, although JRE 7 supports the TLSv1.1 and TLSv1.2 protocols, they are not actually enabled by default. The JSSE reference cites compatibility reasons for this but this doesn't appear to be the case with the TigerVNC server and they will be enabled by default in JRE 8. The regular expression for enabling anonymous DH cipher suites was too narrow and excluded the elliptic curve ciphers, which are now ordered ahead of the ephemeral ciphers by the default security provider. Lastly, increase the size of the buffer in FdOutStream from 8Kb to 16Kb. I'm not sure why FdInStream and FdOutStream were asymmetric to begin with, but 16Kb is the default size for TLS packets and there seems to be now negative effects on plain text connections.
* Whitespace cleanup onlyBrian Hinz2013-05-1214-82/+82
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5097 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Make exception handling more user friendly. Not all exceptions are 'errors' ↵Brian Hinz2012-12-162-3/+3
| | | | | | (for example, exiting the server intentionally via the window manager's logoff button). git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5021 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fix AccessControlException caused by using System.exit() in applet mode, and ↵Brian Hinz2012-08-261-1/+0
| | | | | | close viewer properly in several other cases. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4965 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Remove unused classBrian Hinz2012-08-261-27/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4963 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Update address of FSF and copyright notices to assign proper credit.Brian Hinz2012-04-1115-22/+31
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4888 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Changes aimed at making the behavior of the java client more consistent with ↵Brian Hinz2012-03-183-48/+66
| | | | | | the binary client. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4871 3789f03b-4d11-0410-bbf8-ca57d06f2519
* pass correct timeout value to selector. limit pixel depth to 24 (OS X ↵Brian Hinz2012-03-142-9/+8
| | | | | | defaults to 32). Increase write buffer size to match CXX value. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4867 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Adds support for fence & continuous updates extensions to java viewer. Adds ↵Brian Hinz2012-02-123-2/+11
| | | | | | low level hooks for TurboVNC fine grained quality controls. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4847 3789f03b-4d11-0410-bbf8-ca57d06f2519
* corrected return value for read function to match unix socket read. updated ↵Brian Hinz2012-02-083-7/+43
| | | | | | exception handling to match C code. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4846 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Replace all stream-based IO with non-blocking NIO-based implementation. ↵Brian Hinz2012-02-039-182/+602
| | | | | | Still a fair amount of cleanup to do, particularly in the SSL handler, which is not very robust, and exception handling in general. All core functionality appears to be working fine though. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4842 3789f03b-4d11-0410-bbf8-ca57d06f2519
* oops, bad commit! I only meant to commit the changes to the TightDecoder.Brian Hinz2011-12-043-86/+51
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4822 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Grabbing the RGB components from the BufferedImage one at a time and ↵Brian Hinz2011-12-043-51/+86
| | | | | | converting the to a 24bpp RGB color manually is about 25% faster than using BufferedImage.getRGB(). git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4821 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Sync up java Tight decoder with recent changes to C client as much as ↵Brian Hinz2011-11-272-11/+9
| | | | | | possible. These changes should also fix the 16bpp issue reported in bug #3429667. I think there are probably errors in the FilterGradient* code but I can't get any servers to actually send this type of data to test it. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4819 3789f03b-4d11-0410-bbf8-ca57d06f2519
* massive performance improvements. zrle measured at 2.5x faster (no ↵Brian Hinz2011-10-302-17/+33
| | | | | | measurements for tight, but should be the same or better). git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4742 3789f03b-4d11-0410-bbf8-ca57d06f2519
* performance improvementsBrian Hinz2011-10-242-14/+15
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4733 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Improved TightJPEG decoder by using a BufferedImage. It simplifies the code, ↵Brian Hinz2011-10-141-2/+6
| | | | | | and even though it's just used for grabbing the pixels, it should be faster since it can be HW accelerated. Also added a super.finalize() to the finalizer method in the ZlibInStream class for good measure. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4729 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Move Java source up one level and allow Java viewer to be built as a ↵DRC2011-10-0710-0/+879
standalone project (per community request) git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4715 3789f03b-4d11-0410-bbf8-ca57d06f2519