Re: How to get hostname from the Gio::SocketAddress ?
- From: Markus Kolb <markus kolb+gtkmm tower-net de>
- To: gtkmm Mailinglist <gtkmm-list gnome org>
- Subject: Re: How to get hostname from the Gio::SocketAddress ?
- Date: Thu, 05 Feb 2015 22:39:26 +0100
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]