[Spice-devel] [spice-server v3 2/6] reds-stream: Introduce reds_stream_set_no_delay() helper
Jeremy White
jwhite at codeweavers.com
Thu Mar 30 17:26:58 UTC 2017
Hi,
On 03/16/2017 10:02 AM, Christophe Fergeau wrote:
> The code to enable/disable on a TCP socket is duplicated in multiple
> places in the code base, this commit replaces this duplicated code with
> a helper in RedsStream.
>
> Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>
> ---
> server/Makefile.am | 2 ++
> server/common-graphics-channel.c | 13 ++--------
> server/net-utils.c | 54 ++++++++++++++++++++++++++++++++++++++++
> server/net-utils.h | 25 +++++++++++++++++++
> server/red-channel-client.c | 17 ++-----------
> server/reds-stream.c | 14 +++++++++++
> server/reds-stream.h | 1 +
> server/reds.c | 8 +++---
> server/sound.c | 8 +-----
> 9 files changed, 104 insertions(+), 38 deletions(-)
> create mode 100644 server/net-utils.c
> create mode 100644 server/net-utils.h
>
> diff --git a/server/Makefile.am b/server/Makefile.am
> index 49c0822..a771911 100644
> --- a/server/Makefile.am
> +++ b/server/Makefile.am
> @@ -166,6 +166,8 @@ libserver_la_SOURCES = \
> image-encoders.c \
> image-encoders.h \
> glib-compat.h \
> + net-utils.c \
> + net-utils.h \
> $(spice_built_sources) \
> $(NULL)
This didn't apply for me to current tip; looks like there was some
alphabetizing that went in after your patch.
Also, I needed to include <stdio.h> to get net-utils.c to compile
without error on Debian.
I have one more comment on the 3rd patch; the rest of the series looks
reasonable to me.
Cheers,
Jeremy
More information about the Spice-devel
mailing list