Pierre Ossman
4bba2467fb
Remove writeConnFailedFromScratch()
It is static and only used from a single place, so let's inline it.
5 years ago
Pierre Ossman
f858682c36
Remove comments about self-deleting connections
It isn't true so remove those comments.
5 years ago
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 years ago
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 years ago
Pierre Ossman
beb59a4320
Remove variable length arrays
These are not allowed in C++, and have been made optional in C11.
So let's just get rid of them and any issues they may cause.
5 years ago
Pierre Ossman
6e7f16907d
Update gettext.h to latest version
5 years ago
Pierre Ossman
42d0f5dd74
Fixed handling of AltGr from Windows' touch keyboard
We need to test this always in order to catch Ctrl+AltGr, and to
handle release of the key properly. Hopefully there isn't any other
case where VK_MENU is sent without a scan code.
5 years ago
Pierre Ossman
0f1c63060c
Handle AltGr from Windows' touch keyboard
5 years ago
Pierre Ossman
785cb9d837
Adjust XDamage tracking to geometry
We might have an offset in the area of the screen we're tracking,
so make sure that offset is included in the changes we report.
5 years ago
Pierre Ossman
b03512c65d
Move client attributes out of ServerParams
ServerParams should contain the server state and not information about
client settings or capabilities. Move those things up a level to the
CConnection object.
6 years ago
Pierre Ossman
6ea58ba97b
Merge client resize capabilities
No need to have one setting for each extension. All the client code
needs to indicate is if it supports resize. The common code can then
map this to relevant extensions.
6 years ago
Pierre Ossman
dc738ac754
Don't update screen layout directly on incoming client request
It needs to be validated and take effect in the server first.
6 years ago
Pierre Ossman
5588f4f482
Remove unused flags from ServerParams
These were either completely unused, or always true.
6 years ago
Pierre Ossman
3bbe8d7217
Simplify encoding list generator
Tight is the default preferred encoding, so we don't really need
special handling for it to be first in the list.
6 years ago
Pierre Ossman
1143ee66e4
Use STL list for encoding list
This is a lot safer and cleaner. The old code had a fixed size that
we didn't properly keep track of.
6 years ago
Pierre Ossman
9672835662
Make arguments explicit in all message writer methods
Make sure all methods only write what is given as arguments, and
avoid side effects by getting data from parameter objects. This keeps
things readable in the calling code.
6 years ago
Pierre Ossman
ef6881b9db
Move update request handling in to CConnection
It's a generic client thing, so abstract it in to the common library.
Makes it easier to integrate with other common code.
6 years ago
Pierre Ossman
dd45b44901
Let CMsgHandler::serverInit() handle initial set up
Avoid using the callbacks used for runtime changes for the initial
setup. They weren't really useful anyway as you could not allocate
a framebuffer without also knowing the pixel format. So make things
more clear by letting serverInit() get the initial settings.
5 years ago
Pierre Ossman
2affd77532
Stop requiring CConnection::serverInit() to be overridden
Add an explicit callback for subclasses to do their startup in. This
makes it easier to do proper ordering, and avoids mistakes.
6 years ago
Pierre Ossman
2fae5cf065
Remove unused CConnection::getIdentityVerifier()
6 years ago
Pierre Ossman
6eecbcafd4
Stop using fences for pixel format switch
This method was only really useful when continuous updates was active,
so let's rely on a single extension rather than two.
6 years ago
Pierre Ossman
b114f5cfb7
Remove indirect capability attributes
Better to check the actual list of supported encodings directly.
Makes parts more readable, and no risk of getting out of sync.
6 years ago
Pierre Ossman
a114c343bc
Move copy rect handling to EncodeManager
No need to spread things out. Keep all of the handling in a single
place to make things clearer.
6 years ago
Pierre Ossman
0d3ce87f11
Rename ConnParams to ClientParams
Now that we've split out server state to ServerParams, ConnParams
only contains state for a client. Rename the class and variables
to reflect this.
6 years ago
Pierre Ossman
b14a6bc1aa
Split out ServerParams from ConnParams
We need to track different things in the server and client, so
separate things to two independent structures to keep things more
clear.
6 years ago
Pierre Ossman
9312b0e3e1
Encapsulate screen layout storage in ConnParams
Avoid direct access to the screen dimensions and layout so that we
can make sure it stays sane. This also makes sure the layout is
properly updated when we only get the screen dimensions from the
server.
6 years ago
Pierre Ossman
0fe375a209
Respect geometry setting in screen layout
We might only be using part of the X server's screen, so make sure
the layout we calculate is contained within this part.
5 years ago
Pierre Ossman
ea7ede9838
Move version reading/writing out of ConnParams
That object is just a container for the current state. Move the I/O
to the classes already doing such stuff.
6 years ago
Pierre Ossman
52a2e6520a
Remove unused include
We should not be including server headers from client code. It was
not even needed, so simply remove it.
6 years ago
Pierre Ossman
23a4213d8a
Merge branch 'nojava' of https://github.com/CendioOssman/tigervnc
5 years ago
Pierre Ossman
cd7931df76
Inherit SocketServer directly from VNCServer
This makes VNCServer a sufficiently complete interface that callers
don't need to know about the specific implementation (VNCServerST
currently). And assuming that all servers will use sockets is not
that outrageous.
5 years ago
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 years ago
Pierre Ossman
7a062ef510
Merge branch 'x0vncserver-run-destructors' of https://github.com/x11clone/x11clone
5 years ago
Pierre Ossman
8f22f4e0f9
Merge branch 'master' of https://github.com/grulja/tigervnc
5 years ago
Pierre Ossman
cc647dbd40
Fix rendering on big endian system
Our XRender code assumes a certain pixel layout which was not
guaranteed on big endian systems. The previous workaround only worked
for some cases, so fix this properly now.
5 years ago
Pierre Ossman
4af93a9509
Adjust some strings so they are easier to translate
5 years ago
joe Hansen
ad04a3be0b
Update Danish translation
5 years ago
Peter Åstrand (astrand)
454d44456f
Run listener destructors before terminating
Must be done in order to remove UNIX sockets etc.
5 years ago
Pierre Ossman
794812dc76
Document tests for server keyboard handling
5 years ago
Pierre Ossman
2ae7795730
Clarify some keyboard test details
5 years ago
Pierre Ossman
32b96ffec1
Change to https for tigervnc URL
Our main web site now supports https, so update all references.
5 years ago
Pierre Ossman
7d64b33b5b
Move access rights and closing to SConnection object
This makes it generally useful and other code doesn't have to
know of the specific sub-class.
5 years ago
Pierre Ossman
07e44cc508
Encapsulate setDesktopSize() in VNCServerST
More encapsulation of functions that require coordinate between
clients.
5 years ago
Pierre Ossman
b68434129b
Encapsulate event handling in VNCServerST
There is some client coordination needed which is better encapsulated
inside VNCServerST. This also helps hiding the desktop from the
individual clients.
5 years ago
Pierre Ossman
6094ced797
Use accessor methods for VNCServerST
Avoid having VNCSConnectionST poking around in VNCServerST's internals
and instead access things via safer methods.
5 years ago
Pierre Ossman
eef6c9ad83
Remove QueryConnectionHandler
Make things simpler by making this a part of the SDesktop interface
that always needs to be implemented.
5 years ago
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 years ago
Pierre Ossman
83eee75c26
Log TLS handshake result
Makes it easier to debug TLS issues, and to see the effect of
altering the priority string.
5 years ago
Pierre Ossman
4a4453fc69
Remove Java web server
Applets don't work anymore so remove everything that has to do
with serving them.
5 years ago
Jan Grulich
a752d8fd7a
Avoid potential crash when replacing buffer in PlainPasswd
5 years ago