Re: How to get hostname from the Gio::SocketAddress ?



Am 2015-02-05 22:19, schrieb Markus Kolb:
Hi,

what's the way to get the corresponding hostname to the
Gio::SocketAddress which I retrieve via
Gio::SocketConnection->get_local_address() ?


ok, I think I got it...

1. Gio::InetSocketAddress* p_isa = ((Gio::InetSocketAddress*)(con->get_local_address()->gobj()));

2. Glib::RefPtr<Gio::InetSocketAddress> p_isa = Glib::RefPtr<Gio::InetSocketAddress>::cast_static(con->get_local_address());


Ok?

Thx


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]