Address
Object Hierarchy:
Soup.Address
Soup.Address
Soup.Address
GLib.Object
GLib.Object
GLib.Object->Soup.Address
GLib.SocketConnectable
GLib.SocketConnectable
GLib.SocketConnectable->Soup.Address
Description:
[ CCode ( type_id = "soup_address_get_type ()" ) ]public class Address : Object , SocketConnectable
Content:
Properties:
Creation methods:
Methods:
public bool equal_by_ip (Address addr2)
Tests if this and addr2
have the same IP address.
public bool equal_by_name (Address addr2)
Tests if this and addr2
have the same "name".
public SocketAddress get_gsockaddr ()
Creates a new SocketAddress
corresponding to this (which is assumed to only have one socket address associated with it).
public unowned string ? get_name ()
Returns the hostname associated with this
.
public unowned string ? get_physical ()
Returns the physical address associated with
this as a string.
public uint get_port ()
Returns the port associated with this
.
public void * get_sockaddr (out int len)
Returns the sockaddr associated with this
, with its length in *len
.
public uint hash_by_ip ()
A hash function (for GenericSet ) that
corresponds to equal_by_ip , qv
public uint hash_by_name ()
A hash function (for GenericSet ) that
corresponds to equal_by_name , qv
public bool is_resolved ()
Tests if this has already been
resolved.
public void resolve_async (MainContext ? async_context, Cancellable ? cancellable, AddressCallback callback)
public uint resolve_sync (Cancellable ? cancellable = null )
Synchronously resolves the missing half of
this , as with resolve_async .
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
All known members inherited from interface GLib.SocketConnectable