Alon Levy
612f9744df
server/smartcard: print instead of assert on bad reader_id in smartcard_char_device_on_message_from_device
2011-02-07 21:32:40 +02:00
Alon Levy
fe83d01162
server/smartcard: libcacard uses network byte order, so we must too
2011-02-07 21:32:40 +02:00
Alon Levy
9d75e43226
server/smartcard: libcacard removed ReaderAddResponse
2011-02-07 21:31:23 +02:00
Alon Levy
4e48f65dc4
server/smartcard: s/reader_id_t/uint32_t/ (libcacard changed)
2011-02-07 20:27:35 +02:00
Alon Levy
8c17f83940
server/red_channel: style fix in red_channel_init_send_data
2011-02-07 19:22:44 +02:00
Alon Levy
c4d028510d
server/red_channel: red_channel_pipe_clear: assert on NULL channel
2011-02-07 19:22:44 +02:00
Alon Levy
e9103c67ad
server/red_channel: add TODO
2011-02-07 19:22:44 +02:00
Alon Levy
e655c5d26e
server/red_channel: export red_channel_send
2011-02-07 19:22:44 +02:00
Alon Levy
10692e20ca
server/red_channel: add red_channel_waiting_for_ack
...
small inline function to have the ack window logic.
2011-02-07 19:22:44 +02:00
Alon Levy
f45d17d68b
server/red_channel: protect red_channel_push from NULL
2011-02-07 19:22:44 +02:00
Alon Levy
3476fe428d
server/red_channel: reset pipe_size on clear (from red_worker)
2011-02-07 19:22:44 +02:00
Alon Levy
5062433d8a
server/red_channel: red_channel_event: push on blocked
...
try to push either on signal (write available) or when blocked
and read signaled. From red_worker, copied for compatibility when
switching later to RedChannel in red_worker. Doesn't make a lot of
sense (but works), see comment in patch.
2011-02-07 19:22:44 +02:00
Alon Levy
23f13aa983
server/red_channel: use red_channel_receive
2011-02-07 19:22:44 +02:00
Alon Levy
a5afee2842
server/red_channel: add empty handle of SPICE_MSGC_DISCONNECTING
...
Simply ignored in red_channel_handle_message
2011-02-07 19:22:44 +02:00
Alon Levy
74d7405493
server/red_channel: add red_channel_receive (for red_worker)
2011-02-07 19:22:44 +02:00
Alon Levy
c0b7abaa48
server/red_channel: unstatic red_channel_pipe_clear (for red_worker)
2011-02-07 19:22:44 +02:00
Alon Levy
a30a602654
server/red_channel: unstatic red_channel_push (for red_worker)
2011-02-07 19:22:44 +02:00
Alon Levy
57b719b991
server/red_channel: two 80 column fixes
2011-02-07 19:22:44 +02:00
Alon Levy
33bede823a
server/red_channel: add public red_channel_default_peer_on_error
...
for later use in red_worker
2011-02-07 19:22:44 +02:00
Alon Levy
c322873cf0
server/red_channel: add red_channel_pipe_add_after (from red_worker)
2011-02-07 19:22:44 +02:00
Alon Levy
23f37df548
server/red_channel: make client ack window configurable
...
from red_worker
2011-02-07 19:22:44 +02:00
Alon Levy
0512726b68
server/red_channel (tunnel): change sig of red_channel_handle_message
...
for later usage with red_worker
2011-02-07 19:22:44 +02:00
Alon Levy
26dda37c27
server/red_channel: make MAX_SEND_VEC 100
...
MAX_SEND_VEC was 100 for DisplayChannel's RedChannel implementation which is being replaced
with RedChannel in red_channel. So changing from 50 to 100 in red_channel
(make this configurble?) - effectively increased memory usage by:
(100-50)*sizeof(iovec)*(num_of_channels-2) ==(arch 64bit) 50*16*6 ~ 5k
Not terrible.
2011-02-07 19:22:44 +02:00
Alon Levy
b4c3b8a586
server/red_channel: reflect SpiceDataHeader fields in handle_parsed_proc
2011-02-07 19:22:44 +02:00
Alon Levy
194a6be5f7
server/red_channel: add red_channel_pipe_add_push
2011-02-07 19:22:44 +02:00
Alon Levy
7dfd7a0c77
server/red_channel: add hold_item (from red_worker)
...
hold_item called on init_send_data, matching release.
This is not the behavior of red_worker - we ref++ (==hold_item) when
sending the item, and --refs when releasing it, instead of only holding
if the send is blocked.
Note 1: Naming: hold_pipe_item is the proc name, the variable is called
hold_item, this is similar to release_item/release_pipe_item naming.
Note 2: All channels have empty implementation, we later use this when
red_worker get's RedChannelized.
2011-02-07 19:21:21 +02:00
Alon Levy
e571b5ebbb
server/red_channel: add out_bytes_counter (unused)
2011-02-07 19:06:52 +02:00
Alon Levy
31db6ef8c2
server/red_worker: fix used but uninitialized warning (gcc 4.6.0)
2011-02-07 15:10:36 +02:00
Alon Levy
46c70521d5
client/server: warning fixes (gcc 4.6.0)
...
gcc 4.6.0 added "[-Werror=unused-but-set-variable]", this and the next
few fixes tend to that. Mostly harmless.
2011-01-25 17:22:48 +02:00
Alon Levy
d3b22d86f0
client/server: add missing USE_TUNNEL
...
disable some code that only makes sense when USE_TUNNEL is defined
in client and server channel security level setting.
2011-01-25 17:16:27 +02:00
Alon Levy
5a2ef3b21c
client/server: add missing smartchannel channel security handling
...
The name to channel id mapping for the smartcard channel is missing,
add it in client and server.
2011-01-25 17:16:18 +02:00
Hans de Goede
c29e4f9dd8
Update license header for server/red_parse_qxl.c
...
This one mistakenly had a GPL header rather then an LGPL header.
2011-01-21 15:37:04 +01:00
Alon Levy
f16c2fccdd
server/red_channel: fix segfault on red_channel_destroy if peer already removed
2011-01-16 11:59:08 +02:00
Alon Levy
2809d84724
server/inputs_channel: use outgoing marshaller in red_channel/RedChannel
2011-01-16 11:59:06 +02:00
Alon Levy
8fabff2a1e
server/main_channel: use red_channel (most code is pipe send/marshall separation)
2011-01-15 20:54:48 +02:00
Alon Levy
444b322cab
server/red_channel: no need for extra loop
2011-01-15 20:54:48 +02:00
Alon Levy
90c93eb3c1
server/red_channel: go marshaller for outgoing (copied from red_worker)
2011-01-13 06:56:54 +02:00
Alon Levy
e7e667f81d
server/reds: don't remove agent if it's not connected
2011-01-13 06:56:54 +02:00
Alon Levy
26cd666be5
server/reds: protect reds_update_mouse_mode when main_channel is disconnected
2011-01-13 06:56:54 +02:00
Alon Levy
42522e0db9
server/reds: don't call close on NULL channel on atexit callback
2011-01-13 06:56:54 +02:00
Alon Levy
cd6c57e337
server/reds: fix possible segfault when accessing vdagent from reds_update_mouse_mode after vdagent set to NULL
2011-01-13 06:56:53 +02:00
Alon Levy
cdfa261dbb
server/reds: s/reds_push_migrate_data_item/reds_marshall_migrate_data_item/
2011-01-13 06:56:53 +02:00
Alon Levy
685f82a48e
server: split main_channel from reds
2011-01-13 06:56:51 +02:00
Alon Levy
293f5f0df8
server/tests: split test_display_no_ssl to test_display_base, add streaming test
2011-01-10 14:11:37 +02:00
Alon Levy
2c16ef8f26
server/tests/test_display_no_ssl: add update_area, COPY_BITS to tested functions, make a queue of QXLCommandExt waiting (cursor still with production at get_command)
2011-01-10 14:11:37 +02:00
Alon Levy
92e4ab6d68
server/tests/test_display_no_ssl: add surface create/destroy test (commented out), and square mode (default)
2011-01-10 14:11:37 +02:00
Alon Levy
2124818788
server/tests: fix timer reset to allow setting next call during callback
2011-01-10 14:11:37 +02:00
Alon Levy
c1846506de
server/tests/test_display_no_ssl: change color every circle
2011-01-10 14:11:37 +02:00
Alon Levy
618d13d4d1
server/tests/test_display_no_ssl: restart notify timer
2011-01-10 14:11:37 +02:00
Alon Levy
0707feca43
server/tests: basic_event_loop: reset timer after firing it
2011-01-10 14:11:37 +02:00