Pierre Ossman
10688efcf7
Properly terminate server on timeouts
Do a proper cleanup when one of the termination timeouts trigger
rather than just exiting on the spot. This makes sure we don't leave
stray stuff around, e.g. unix socket files.
5 vuotta sitten
Pierre Ossman
8526e48073
Stop trying to send ListConnInfo via WM_COPYDATA
Windows tries to do a copy of it, and it is too complex to survive
that. Just reference the object directly as we know the source of
the message here.
5 vuotta sitten
Pierre Ossman
025326dd94
Move ListConnInfo to WinVNC directory
It is functionality specific to WinVNC, so move the code there
to make things more clear.
5 vuotta sitten
Pierre Ossman
6c97fa4575
Encapsulate client handling in VNCServerST
Removed the last parts of VNCSConnectionST's back door in to
VNCServerST and let the parent class fully handle coordination of
clients, and access to the desktop.
5 vuotta sitten
Pierre Ossman
eef6c9ad83
Remove QueryConnectionHandler
Make things simpler by making this a part of the SDesktop interface
that always needs to be implemented.
5 vuotta sitten
Pierre Ossman
e6aab24654
Force common flow of connection queries
Force queryConnection() to always call back to approveConnection()
rather than return special values. This makes the flow easier to
follow as it will be the same in all cases.
5 vuotta sitten
Pierre Ossman
4a4453fc69
Remove Java web server
Applets don't work anymore so remove everything that has to do
with serving them.
5 vuotta sitten
Pierre Ossman
8ee522a66e
Catch exceptions by reference
We use polymorphic exception objects, so catching by value invokes
the copy constructor and stuff that we don't really want.
6 vuotta sitten
Pierre Ossman
e3a2be69c4
Use abstract SocketListener class
Makes the code more general and not directly tied to specifically
TCP sockets.
6 vuotta sitten
Samuel Mannehed
518698a28c
Update visible copyright year to 2018
6 vuotta sitten
Peter Åstrand (astrand)
6011f96cdc
Rename README.txt to README.rst and convert to reStructuredText
6 vuotta sitten
Peter Åstrand (astrand)
90afb1c20c
Configuration::listParams wants width/nameWidth; not ConfigurationObject
6 vuotta sitten
Pierre Ossman
b000ff1327
Get rid of getFbSize()/getDesktopSize() in common
It was only used by WinVNC, so push it there instead.
6 vuotta sitten
Samuel Mannehed
8e5a29e4b2
Update visible copyright year to 2017
7 vuotta sitten
klemens
0536d0975b
spelling fixes
7 vuotta sitten
Pierre Ossman
c7860c2cb6
Don't fail old service cleanup
7 vuotta sitten
Pierre Ossman
338e73aef8
Replace Windows specific thread handling
Use the platform independent primitives instead.
8 vuotta sitten
Pierre Ossman
ed92079eb6
Clean up old WinVNC services
We've changed the service name a couple of times for various
reasons. Make sure the old versions are removed when the new one
is registered.
8 vuotta sitten
Pierre Ossman
4e7d05c992
Don't reference Xregion unless used directly
8 vuotta sitten
Bojan Memetovic
fa937783d7
change the Copyright year
8 vuotta sitten
Pierre Ossman
fc08bee5af
Remove legacy Windows code
We have lots of code that deals with Windows versions that we no
longer support anyway. Clean out all of this old cruft.
8 vuotta sitten
Pierre Ossman
526b3802b4
Shorten service identifier
The identifier is used to compute the registry path, and should
ideally be kept short and without spaces.
8 vuotta sitten
Pierre Ossman
018c67e6e1
Provide description for services
The argument named "desc" was not actually the description, but
rather the short "display name". Add handling for the actual
description to reduce confusion.
8 vuotta sitten
Pierre Ossman
eab85bca5e
Clean up listening sockets on error
8 vuotta sitten
Pierre Ossman
f7aa3f9bd3
Return TcpListener pointers rather than objects
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.
8 vuotta sitten
Pierre Ossman
bc84faa2f3
Improve TigerVNC branding in WinVNC
Avoids conflicts with the original RealVNC implementation, or any
other forks of that code.
9 vuotta sitten
Pierre Ossman
5b90c5fbf7
Convert WinVNC to the new TcpListener API
9 vuotta sitten
Pierre Ossman
79f82f95c1
Local address change events are not socket specific
9 vuotta sitten
Pierre Ossman
57cab51d83
Resurrect TcpListener::getMyAddresses()
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
9 vuotta sitten
Pierre Ossman
cd5c82a655
Fix unsafe format strings to the logging functions
9 vuotta sitten
Pierre Ossman
b0a8047bba
Don't shove a pointer into a 32-bit variable
9 vuotta sitten
Pierre Ossman
ba6fbfe368
Give CharArray a printf style method to ease automatic allocation
9 vuotta sitten
Pierre Ossman
b1cd6ca8f0
Reorder class initialiser list to match what actually happens
9 vuotta sitten
Pierre Ossman
fb450fba5d
Fix mismatches between format string and arguments
9 vuotta sitten
Pierre Ossman
5ad4d06006
Remove a lot of platform compatibilty stuff
It's either not used, or no longer relevant.
10 vuotta sitten
Samuel Mannehed
60c419320d
Make WinVNC service mode work on Windows Vista and beyond.
Patch by Jochen Tucht, fixes bug 135.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5158 3789f03b-4d11-0410-bbf8-ca57d06f2519
10 vuotta sitten
Brian Hinz
dc6af3740c
Removes the additional padding reserved for the menubar and enables drag undocking for the java applet when served from Windows.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5157 3789f03b-4d11-0410-bbf8-ca57d06f2519
10 vuotta sitten
Peter Åstrand
f8212b949c
Update more copyrights to 2013.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5122 3789f03b-4d11-0410-bbf8-ca57d06f2519
11 vuotta sitten
Pierre Ossman
7f4fc69784
Windows has a bit of a peculiarity in that winsock2.h must be included
before windows.h for correct winsock behaviour. mingw-w64 also enforces
this order, so to avoid compile errors we must include windows.h late in
all files.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4906 3789f03b-4d11-0410-bbf8-ca57d06f2519
12 vuotta sitten
Pierre Ossman
4c378e0f93
Build wm_hooks in its own directory. Makes the build structure more clear.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4896 3789f03b-4d11-0410-bbf8-ca57d06f2519
12 vuotta sitten
Pierre Ossman
95e28f74a2
Consolidate the installation paths and make sure we have decent defaults.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4873 3789f03b-4d11-0410-bbf8-ca57d06f2519
12 vuotta sitten
DRC
ccc0969dd9
Remove Visual C++ support
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4774 3789f03b-4d11-0410-bbf8-ca57d06f2519
12 vuotta sitten
DRC
714110ba26
Fix installer build when using MinGW
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4769 3789f03b-4d11-0410-bbf8-ca57d06f2519
12 vuotta sitten
DRC
11278c50dc
Fix Java viewer integration when building WinVNC with MinGW
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4727 3789f03b-4d11-0410-bbf8-ca57d06f2519
12 vuotta sitten
DRC
e8b16be856
Newer versions of GCC (specifically, the one in MinGW64) don't like casting directly from a 64-bit pointer to a 32-bit integer, so we need to first cast to a 64-bit integer (remember that Windows is LLP64)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4722 3789f03b-4d11-0410-bbf8-ca57d06f2519
12 vuotta sitten
DRC
c19ab9ec7f
Move Java source up one level and allow Java viewer to be built as a standalone project (per community request)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4715 3789f03b-4d11-0410-bbf8-ca57d06f2519
12 vuotta sitten
DRC
857f1337eb
Only include Java viewer resources if BUILD_JAVA is defined
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4706 3789f03b-4d11-0410-bbf8-ca57d06f2519
12 vuotta sitten
DRC
f50ec7c550
Fix WinVNC so that it embeds and serves up the Java viewer whenever BUILD_JAVA=1
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4704 3789f03b-4d11-0410-bbf8-ca57d06f2519
12 vuotta sitten
DRC
07baad757a
Use generic copyright message which refers the user to the complete copyright history in README.txt
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4569 3789f03b-4d11-0410-bbf8-ca57d06f2519
13 vuotta sitten
DRC
1980dd537c
Remove unused autotools build system
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4540 3789f03b-4d11-0410-bbf8-ca57d06f2519
13 vuotta sitten