Re: How to get hostname from the Gio::SocketAddress?
- From: Murray Cumming <murrayc murrayc com>
- 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, 06 Feb 2015 11:55:45 +0100
On Thu, 2015-02-05 at 22:39 +0100, Markus Kolb wrote:
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());
A cast_dynamic() would be safer.
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]