Re: How to get hostname from the Gio::SocketAddress?
- From: Mathias Müller <mueller physik uni-kiel de>
- To: Markus Kolb <markus kolb+gtkmm tower-net de>
- Cc: gtkmm Mailinglist <gtkmm-list gnome org>
- Subject: Re: How to get hostname from the Gio::SocketAddress?
- Date: Fri, 6 Feb 2015 10:03:07 +0100
Could you please specify your "con" variable?
On 0, Markus Kolb <markus kolb+gtkmm tower-net de> wrote:
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]