| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| | |
|
| | |
|
|\| |
|
| |
| |
| |
| |
| | |
Add more checks and fix some callers to make sure that the server
core always has a valid screen layout configured.
|
| | |
|
| |
| |
| |
| |
| |
| | |
Make the API consisitent by requiring the caller to check what the client
supports before calling any of the write* functions. This avoids the
confusion that the functions might not always do anything.
|
| |
| |
| |
| |
| |
| | |
Avoid having the callers need to know about the different variants
of these functions and instead have the writer pick the most appropriate
extension.
|
| |
| |
| |
| |
| |
| | |
This is what the protocol requires, rather than sending what the
client specified in the request. This should be the same in practice
except for failures and possibly some races.
|
| |
| |
| |
| |
| |
| | |
ServerParams should contain the server state and not information about
client settings or capabilities. Move those things up a level to the
CConnection object.
|
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
It needs to be validated and take effect in the server first.
|
| |
| |
| |
| | |
These were either completely unused, or always true.
|
| |
| |
| |
| |
| | |
Tight is the default preferred encoding, so we don't really need
special handling for it to be first in the list.
|
| |
| |
| |
| |
| | |
This is a lot safer and cleaner. The old code had a fixed size that
we didn't properly keep track of.
|
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
It's a generic client thing, so abstract it in to the common library.
Makes it easier to integrate with other common code.
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
Add an explicit callback for subclasses to do their startup in. This
makes it easier to do proper ordering, and avoids mistakes.
|
| | |
|
| |
| |
| |
| |
| | |
Better to check the actual list of supported encodings directly.
Makes parts more readable, and no risk of getting out of sync.
|
| |
| |
| |
| |
| | |
No need to spread things out. Keep all of the handling in a single
place to make things clearer.
|
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| | |
We need to track different things in the server and client, so
separate things to two independent structures to keep things more
clear.
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
That object is just a container for the current state. Move the I/O
to the classes already doing such stuff.
|
| |
| |
| |
| |
| | |
We should not be including server headers from client code. It was
not even needed, so simply remove it.
|
| |
| |
| |
| |
| |
| | |
32 bits are not enough to keep track of all the pixels that might
flow through the system. Expand things to 64 bits, which should cover
all reasonable uses.
|
| |
| |
| |
| |
| |
| |
| | |
We need to check earlier if we are going to send this refresh or
not. Otherwise we send out pings pointlessly, and we also stall
the request loop with a client as we clear the requested region
without actually sending an update message.
|
| |
| |
| |
| |
| | |
It makes the logic a bit easier to follow, and also fixes the
case where just a fake update is needed.
|
| |
| |
| |
| | |
Fallout from beb59a43.
|
| |
| |
| |
| |
| | |
We need a larger range to handle the temporary overflow caused by
the Floyd-Steinberg dithering.
|
|\ \ |
|
| |/
| |
| |
| |
| | |
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.
|
|\ \ |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
It doesn't belong on each socket server object as timers are global.
Force implementations to call the Timer system directly instead,
avoiding any middle men.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Get this timeout in to the timer system as well to make things
simpler and more robust.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This makes them more consistent with everything else, which makes
things clearer and also allows them to handle some corner cases
(e.g. only firing once).
|
|\| | |
| |_|/
|/| | |
|
| | |
| | |
| | |
| | | |
Add missing comments and clearly separate methods from attributes.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
It is an internal function so it has no business being public.
Compare with CConnection where it is already private.
|
| | |
| | |
| | |
| | | |
It is static and only used from a single place, so let's inline it.
|
| | |
| | |
| | |
| | | |
It isn't true so remove those comments.
|
| | |
| | |
| | |
| | |
| | | |
It is functionality specific to WinVNC, so move the code there
to make things more clear.
|