diff options
Diffstat (limited to 'examples/client/stream-tubes/offerer.c')
-rw-r--r-- | examples/client/stream-tubes/offerer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/client/stream-tubes/offerer.c b/examples/client/stream-tubes/offerer.c index 3b6535abd..e32cc642f 100644 --- a/examples/client/stream-tubes/offerer.c +++ b/examples/client/stream-tubes/offerer.c @@ -45,13 +45,13 @@ _incoming_iostream (TpStreamTubeChannel *tube, out = g_io_stream_get_output_stream (G_IO_STREAM (conn)); /* this bit is not a good example */ - g_output_stream_write (out, "Pong", 4, NULL, &error); - g_assert_no_error (error); - g_input_stream_read (in, &buf, sizeof (buf), NULL, &error); g_assert_no_error (error); + g_debug ("Received: %s", buf); - g_debug ("Send Pong got: %s", buf); + g_debug ("Sending: Pong"); + g_output_stream_write (out, "Pong", 4, NULL, &error); + g_assert_no_error (error); tp_cli_channel_call_close (TP_CHANNEL (tube), -1, channel_closed_cb, NULL, NULL, NULL); |