Alon Levy
e9be6ca82c
server/red_channel (all): add red_channel_get_header
...
This is useful during the channel specific channel_send_pipe_item_proc
callback, it allows altering or reader the header being sent.
2011-03-02 17:27:52 +02:00
Alon Levy
17d5761322
server/red_channel: add red_channel_get_first_socket
...
Use in main_channel. This is just for backward portability later
when multiple clients are introduced - needs to be considered (which
sockets do we want to export from libspiceserver?)
2011-03-02 17:27:52 +02:00
Alon Levy
8cd5568c92
server/red_channel (+): remove red_channel_add_buf
2011-03-02 17:27:52 +02:00
Alon Levy
a05628bf06
server/red_channel (all): add red_channel_get_stream
...
use in config_socket, this makes the stream internal to the RedChannel
implementation that will change later for multiple client support.
2011-03-02 17:27:52 +02:00
Alon Levy
ce03dcfbb5
server/red_channel (all): handle MIGRATE_DATA and MIGRATE_FLUSH_DATA
...
Handling done in red_channel instead of per channel, using call backs
for the channel specific part.
Intended to reduce furthur reliance of channels on RedChannel struct.
The commit makes the code harder to understand because of the artificial
get_serial stuff, should later be fixed by having a joint migration
header with the serial (since all channels pass it).
2011-03-02 17:27:51 +02:00
Alon Levy
8002a30f9c
server/red_channel (all): add red_channel_get_marshaller
...
For ussage in the send_item callback. It's only valid during this
time anyway (should make it return NULL in other occasions?)
No more direct usage of RedChannel.send_data.marshaller by channels.
2011-03-02 17:27:51 +02:00
Alon Levy
5e1ba1101b
server/red_channel: move SET_ACK to red_channel
2011-03-02 17:27:51 +02:00
Alon Levy
2fcd35b073
server/red_channel: add more ack api
2011-03-02 17:27:51 +02:00
Alon Levy
17b6a58f1e
server/red_channel (all): makes red_channel_reset_send_data private
...
ready the way for handling ack messages in RedChannel.
2011-03-02 17:27:51 +02:00
Alon Levy
ce3efca360
server/red_channe: make hold_item take a channel arg
2011-03-02 17:27:50 +02:00
Marc-André Lureau
76dc27f08a
server: rename s/peer/stream
...
This is stylish change again. We are talking about a RedStream object,
so let's just name the variable "stream" everywhere, to avoid
confusion with a non existent RedPeer object.
https://bugs.freedesktop.org/show_bug.cgi?id=34795
2011-02-28 16:36:35 +01:00
Marc-André Lureau
fc5d7f7625
server: use the new reds_stream_{read,write}
...
https://bugs.freedesktop.org/show_bug.cgi?id=34795
2011-02-28 16:36:28 +01:00
Marc-André Lureau
07d6dd6108
server: use reds_{link,stream}_free()
...
Be carefull removing the watch before, like __release_link
https://bugs.freedesktop.org/show_bug.cgi?id=34795
2011-02-27 18:26:19 +01:00
Marc-André Lureau
b79e7320de
server: add reds_stream_{read,write,free,remove_watch}()
...
https://bugs.freedesktop.org/show_bug.cgi?id=34795
2011-02-27 18:26:15 +01:00
Marc-André Lureau
d47912241f
server: s/RedsStreamContext/RedsStream
...
https://bugs.freedesktop.org/show_bug.cgi?id=34795
2011-02-27 16:55:22 +01: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
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
f16c2fccdd
server/red_channel: fix segfault on red_channel_destroy if peer already removed
2011-01-16 11:59:08 +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
380b5e9dd7
server/red_channel: error channel if alloc_msg_buf fails (returns NULL)
2010-12-07 21:32:34 +02:00
Alon Levy
1540a64030
server/red_channel: add red_channel_is_connected
2010-12-07 21:32:34 +02:00
Alon Levy
23db8c093c
server: red_channel: add optional parser and separate incoming/outgoing error handlers for later inputs/main channel usage
2010-12-07 21:32:33 +02:00
Alexander Larsson
1a6e77d6d4
Fix various misspellings
...
letancy -> latency
compund -> compound
SpicedSubMessage -> SpiceSubMessage
modifaiers -> modifiers
massage -> message
outgoiong -> outgoing
AlphaBlnd -> AlphaBlend
remoth -> remote
modifires -> modifiers
secore -> secure
2010-07-08 18:26:37 +02:00
Gerd Hoffmann
10e6d8b53c
s/CoreInterface/SpiceCoreInterface/
2010-05-19 11:22:06 +02:00
Gerd Hoffmann
a5145cc93e
new watch api: switch channels
2010-05-19 11:22:06 +02:00
Alexander Larsson
c97116aeb9
Relicense everything from GPL to LGPL 2.1+
2010-04-13 22:22:15 +02:00
Alexander Larsson
d94cb8e1ba
Use spice allocator in server/
2010-03-11 12:14:08 +01:00
Alexander Larsson
1f51697852
Rename symbols that were changed in spice-protocol
...
This is an automatic change using:
$ find -name "*.[ch]" | xargs ../spice-protocol/rename-identifiers.sh ../spice-protocol/renames
$ find -name "*.cpp" | xargs ../spice-protocol/rename-identifiers.sh ../spice-protocol/renames
2010-02-04 18:49:00 +01:00
Yonit Halperin
ef213c66c1
tunnel
2009-10-18 17:42:37 +02:00