uv_tcp_getsockname returns "0.0.0.0" only (What I had passed it uv_ip4_addr 
before calling uv_tcp_bind)

But it given me hint. I pass IP address as command line parameters to 
server (instead of  hard-coded "0.0.0.0" which is not good idea)
(Server machine could be equipped with multiple adapters thus cmdline gives 
admin chance to chose on which address they want to listen on)

Thanks for reply,
Ashish


On Thursday, January 2, 2014 3:56:44 PM UTC+5:30, Saúl Ibarra Corretgé 
wrote:
>
> On 1/1/14 8:56 PM, Ashish wrote: 
> > 
> > This is regarding server being developed on Windows. My server is going 
> > to store IP address of itself to a shared location. (So that if multiple 
> > servers are running, they can communicate with each other using those 
> > stored addresses) 
> > 
> > But I didn't find any function in lubuv to get IP address of current 
> > server (I am passing "0.0.0.0" to uv_ip4_addr) 
> > 
> > Plz help. 
> > 
>
> Once you initialize and bind your TCP handle you can use 
> uv_tcp_getsockname to get its address. 
>
> -- 
> Sa�l Ibarra Corretg� 
> http://bettercallsaghul.com 
>

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to