Connection
Object Hierarchy:
Description:
public class Connection : Object
Content:
Properties:
- public Stream? bin { get; protected set; }
- public BufferStream? buffer_stream { get; set; }
- public HashMap<int,Hook> callbacks { get; set; }
GI callback rows for this connection (id →
Live.Hook).
- public string cert_fingerprint { get; set; }
SHA256 of the peer certificate DER, or empty.
- public HashMap<int,uint> extras { get; set; }
- public HashMap<int,uint> floors { get; set; }
- public IOStream? io { get; set; }
Plaintext bin streams after a TLS handshake.
- public HashMap<int,HashMap<int,int>> lease_ids { get; set; }
Instance pointer → lease id.
- public HashMap<int,Object> leases { get; set; }
- public bool live_handles { get; set; }
- public int next_handle { get; set; }
Next lease, callback, and reply id (never 0).
- public HashMap<int,HashMap<string,Subscription>> signal_subs { get; set; }
Subscribed GObject handler ids for this connection.
- public SocketConnection? stream { get; construct; }
Creation methods:
- public Connection (SocketConnection? stream = null)
Methods:
- public virtual bool allow_request (Request request)
Return true when this request may run.
- public virtual void emit_wait_poll ()
- public uint64 export (Object gobject)
Pin a live GObject on this connection and return its handle.
- protected virtual bool on_input_ready (IOChannel source, IOCondition condition)
- public void reply (Request request, Response response, Buffer? buffer = null)
- public void reply_error (Request request, int error_code, Error? e = null)
Reply with a JSON-RPC error.
- public virtual void start ()
- public virtual void stop ()
- public virtual void write (Object gobject, Buffer? buffer = null)
Fields:
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