Peer
Object Hierarchy:
Description:
[ CCode ( type_id = "dee_peer_get_type ()" ) ]
public class Peer : Object
All fields in the DeePeer structure are private and should never be accessed directly
Content:
Properties:
Creation methods:
- public Peer (string swarm_name)
Create a new Peer.
Methods:
- public virtual SList<unowned DBusConnection> get_connections ()
Gets list of DBusConnection instances used
by this Peer instance.
- public virtual unowned string get_swarm_leader ()
In case this peer is connected to a message bus, gets the unique DBus
address of the current swarm leader, otherwise returns id of the leader.
- public unowned string get_swarm_name ()
Gets the unique name for this swarm.
- public virtual bool is_swarm_leader ()
- public bool is_swarm_owner ()
- public virtual string[] list_peers ()
Gets list of all peers currently in this swarm.
Signals:
- public virtual signal void connection_acquired (DBusConnection connection)
- public virtual signal void connection_closed (DBusConnection connection)
Connect to this signal to be notified when peers close their
DBusConnection.
- public virtual signal void peer_found (string name)
Connect to this signal to be notified of existing and new peers that
are in your swarm.
- public virtual signal void peer_lost (string name)
Connect to this signal to be notified when peers disconnect from the
swarm
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