Spice.Channel – spice-client-glib-2.0 Reference Manual
Packages
spice-client-glib-2.0
Spice
Channel
channel_id
channel_type
socket
spice_session
total_read_bytes
string_to_type
type_to_string
Channel
channel_reset
channel_send_migration_handshake
channel_up
connect
destroy
disconnect
flush_async
get_error
handle_msg
iterate_read
iterate_write
set_capability
test_capability
test_common_capability
channel_event
open_fd
Channel
Object Hierarchy:
Description:
[
CCode
( type_id =
"spice_channel_get_type ()"
) ]
public
class
Channel
:
Object
The
Channel
struct is opaque and should not be accessed directly.
All known sub-classes:
CursorChannel
DisplayChannel
InputsChannel
MainChannel
PlaybackChannel
PortChannel
RecordChannel
SmartcardChannel
UsbredirChannel
WebdavChannel
Namespace:
Spice
Package:
spice-client-glib-2.0
Content:
Properties:
public
int
channel_id
{
get
;
construct
; }
public
int
channel_type
{
get
;
construct
; }
public
Socket
socket
{
owned
get
; }
Get the underlying
Socket
.
public
Session
spice_session
{
owned
get
;
construct
; }
public
ulong
total_read_bytes
{
get
; }
Static methods:
public
static
int
string_to_type
(
string
str)
Convert a channel-type property value to a string.
public
static
unowned
string
type_to_string
(
int
type)
Convert a channel-type property value to a string.
Creation methods:
public
Channel
(
Session
s,
int
type,
int
id)
Create a new
Channel
of type
type
, and channel ID
id
.
Methods:
public
virtual
void
channel_reset
(
bool
migrating)
public
virtual
void
channel_send_migration_handshake
()
public
virtual
void
channel_up
()
public
bool
connect
()
Connect the channel, using
Session
connection informations
public
void
destroy
()
Disconnect and unref the
this
.
public
void
disconnect
(
ChannelEvent
reason)
Close the socket and reset connection specific data.
public
async
bool
flush_async
(
Cancellable
? cancellable)
throws
Error
Forces an asynchronous write of all user-space buffered data for the given channel.
public
unowned
Error
get_error
()
Retrieves the
Error
currently set on channel, if the
Channel
is in error state and can provide additional error details.
public
virtual
void
handle_msg
(
MsgIn
msg)
public
virtual
void
iterate_read
()
public
virtual
void
iterate_write
()
public
void
set_capability
(
uint32
cap)
Enable specific channel-kind capability.
public
bool
test_capability
(
uint32
cap)
Test availability of remote "channel kind capability".
public
bool
test_common_capability
(
uint32
cap)
Test availability of remote "common channel capability".
Signals:
public
virtual
signal
void
channel_event
(
ChannelEvent
event)
The
channel_event
signal is emitted when the state of the connection is changed.
public
virtual
signal
void
open_fd
(
int
with_tls)
The
open_fd
signal is emitted when a new connection is requested.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref