Re: [gnet] Getting the port from an UDP socket
- From: "David A. Helder" <dhelder gizmolabs org>
- To: stephan wilkogazu nl
- Cc: gnet gnetlibrary org
- Subject: Re: [gnet] Getting the port from an UDP socket
- Date: 13 Jul 2003 18:32:07 -0400
Stephan,
Try:
GInetAddr* ia = gnet_udp_get_local_addr(udp);
gint port = gnet_inetaddr_get_port(ia);
David
On Wed, 2003-07-09 at 17:34, G-LiTe wrote:
> Hi,
>
> I'd like to request for a function for this, because my
> application needs to know which port the UDP socket is
> bound to after a call to gnet_udp_socket_new().
> Right now this seems to be impossible (gnet 2.0.3) and
> I'm forced to use private functions.
>
> If this is already possible, please let me know.
>
> Thanks in advance.
>
> P.S. Please CC me if you're going to reply to this,
> I'm not subscribed to the list.
>
> - -- --- ---- ---------- ---- --- -- -
> G-LiTe
> E-mail: stephan wilkogazu nl
> - -- --- ---- ---------- ---- --- -- -
> _______________________________________________
> gnet mailing list
> gnet gnetlibrary org
> http://www.gnetlibrary.org/mailman/listinfo/gnet
--
David Helder - dhelder gizmolabs org - http://www.gizmolabs.org/~dhelder
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]