aboutsummaryrefslogtreecommitdiffstats
path: root/java/com/tigervnc/network
Commit message (Collapse)AuthorAgeFilesLines
* Capitalize first letter in log, exception & errorMadeleine Nilsson2024-11-211-1/+1
| | | | The reason for this is to keep a consistency through out the project.
* Fix for #1414Brian P. Hinz2022-01-291-2/+2
|
* Fixes for Java 11. SocketDescriptor change was a workaround for a previous ↵Brian P. Hinz2020-08-091-3/+3
| | | | java problem that no longer seems necessary
* Fixes for erros in java hextile/zrle decodersBrian P. Hinz2018-01-163-138/+37
| | | | | | 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.
* Downed hosts should timeout reasonably quicklyBrian P. Hinz2017-02-201-13/+30
|
* Whitespace cleanupBrian P. Hinz2016-12-101-10/+10
|
* Fix getSockPort methods in java TcpSocketBrian P. Hinz2014-11-132-6/+5
| | | | | | | Although not actually used anywhere, the getSockPort method was actually returning the the remote socket's port number. Also simplified some of the other socket methods.
* Make sure sockets are shutdown in java viewer listen modeBrian P. Hinz2014-11-132-6/+15
| | | | | | The finalizer method may not be strictly necessary but for the sake of consistency shutdown the socket listener the same way we do for a regular TcpSocket.
* Java code cleanupBrian P. Hinz2014-11-133-50/+0
| | | | Deleted some useless comments in java viewer
* More enhancements to java SSLEngineManagerBrian P. Hinz2014-11-041-44/+44
| | | | | | | | | | * Blocking behavior in the read() method was leading to high CPU usage. * GC wasn't purging temporary byte arrays used to transfer data between I/O streams and NIO byte buffers, causing excessive memory usage. * Some optimization of read() behavior to reduce the frequency of blocking operations.
* Major overhaul of SSLEngineManagerBrian P. Hinz2014-11-021-167/+124
| | | | | | | | | | | | | | | | | | | | | | | | 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-128-35/+35
| | | | 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-163-18/+18
| | | | | | (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
* Cleanup linter warnings wherever possible and suppress all linter warnings ↵Brian Hinz2012-12-141-2/+2
| | | | | | from Jsch code git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5020 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fix AccessControlException caused by using System.exit() in applet mode, and ↵Brian Hinz2012-08-263-6/+13
| | | | | | 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
* Refactor the handshake code from first principles to remove code that was ↵Brian Hinz2012-08-261-54/+29
| | | | | | borrowed from Netty, which is released under an incompatible license (Apache v2.) Since our SSLEngineManager class was loosely inspired by, but no code was actually borrowed from, the Oracle JSSE examples, it is my opinion that it was incorrect to attribute copyright to Oracle, so that message has been removed (their examples are released under a BSD-style license, anyhow, so it's a non-issue.) git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4962 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Changes to allow compiling on JDK7Brian Hinz2012-07-223-12/+44
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4948 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fixed an issue with -listen mode where java client wasn't listening on the ↵Brian Hinz2012-04-271-3/+1
| | | | | | wildcard address git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4908 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fix Socket methods for querying the socket endpoints. Fix the address ↵Brian Hinz2012-04-262-4/+12
| | | | | | displayed in the info dialog for redirected connections. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4902 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Update address of FSF and copyright notices to assign proper credit.Brian Hinz2012-04-118-23/+16
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4888 3789f03b-4d11-0410-bbf8-ca57d06f2519
* adds experimental support for SSH tunneling to the Java client. Has not ↵Brian Hinz2012-04-052-21/+15
| | | | | | been tested with large desktop sizes yet. CMakeLists.txt needs some rework. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4882 3789f03b-4d11-0410-bbf8-ca57d06f2519
* BufferedImage performance is poor on Microsoft Windows platforms, so ↵Brian Hinz2012-04-051-18/+21
| | | | | | fallback to the 1.2 implementation if the BI cannot be HW accelerated. Also streamline some of the code by removing synchronized statements and making the method calls themselves synchronized. Modification to the selector implementation to make it behave more like a unix selector git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4880 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Changes aimed at making the behavior of the java client more consistent with ↵Brian Hinz2012-03-182-14/+19
| | | | | | the binary client. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4871 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fix an issue where java viewer appears to hang on Mac OS X. As far as I can ↵Brian Hinz2012-03-151-1/+9
| | | | | | tell, this is caused by an upstream bug which might be fixed in JDK 7, but for now this gets around the problem without significantly affecting performance. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4868 3789f03b-4d11-0410-bbf8-ca57d06f2519
* pass correct timeout value to selector. limit pixel depth to 24 (OS X ↵Brian Hinz2012-03-141-1/+7
| | | | | | 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
* make sure we actually throw caught execptions in java viewerBrian Hinz2012-02-162-3/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4856 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Adds support for fence & continuous updates extensions to java viewer. Adds ↵Brian Hinz2012-02-121-3/+3
| | | | | | 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-084-29/+51
| | | | | | 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-037-0/+1050
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