Yep. UDP is a "connectionless" protocol and getsockname returns 0.0.0.0. For
windows more info here: http://support.microsoft.com/kb/129065

Ludo

> -----Message d'origine-----
> De : Beyond Share Support [mailto:supp...@beyondshare.com] 
> Envoyé : mardi 21 juin 2011 04:42
> À : Ararat Synapse
> Objet : Re: [Synalist] RE : RE : How can I get the real IP 
> the socketbinded?
> 
> 
> 
> Ludo,
> 
> I tried but still can't get the address. Maybe that's because 
> I'm using 
> UDP multi-cast?
> 
> Lewis
> 
> Ludo Brands wrote:
> > Once the connection is established, the ip isn't changed anymore.
> >
> > You can get the local address under windows with getsockname() once 
> > the connection is established. I see that this function is 
> called in 
> > TBlockSocket.Connect (through getsins). Calling GetLocalSinIP after 
> > the connect should give you the local IP address.
> >
> > Ludo
> >
> >   
> >> -----Message d'origine-----
> >> De : Beyond Share Support [mailto:supp...@beyondshare.com]
> >> Envoyé : lundi 20 juin 2011 19:19
> >> À : Ararat Synapse
> >> Objet : Re: [Synalist] RE : How can I get the real IP the 
> >> socket binded?
> >>
> >>
> >>
> >> Ludo,
> >>
> >> Once the socket is created (or after sent some data maybe?),
> >> the binded 
> >> IP will not changed, right? I want to find out what's the 
> IP. In the 
> >> remote side, I can use GetRemoteSinIP to find out the IP. 
> But I don't 
> >> know how to get it in local side. I tried GetLocalSinIP but 
> >> it returns 
> >> "0.0.0.0".
> >>
> >> Lewis
> >>
> >> Ludo Brands wrote:
> >>     
> >>> On windows, if the routing metric of the interfaces is the
> >>>       
> >> same then
> >>     
> >>> AFAIK any interface could be used to send out the data.
> >>>
> >>> Ludo
> >>>
> >>>
> >>>
> >>>   
> >>>       
> >>>> -----Message d'origine-----
> >>>> De : Beyond Share Support 
> [mailto:supp...@beyondshare.com] Envoyé : 
> >>>> lundi 20 juin 2011 18:07 À : Ararat Synapse
> >>>> Objet : [Synalist] How can I get the real IP the socket binded?
> >>>>
> >>>>
> >>>> I'm using following code while creating a socket to send 
> out data:
> >>>>
> >>>>   sndsock.Bind('0.0.0.0', '0');
> >>>>
> >>>> My system has multiple address, how can I know which IP 
> the sndsock 
> >>>> actually binded? I mean the ip the remote side will get by using 
> >>>> GetRemoteSinIP.
> >>>>
> >>>> Thanks!
> >>>> Lewis
> >>>>
> >>>> --------------------------------------------------------------
> >>>> ----------------
> >>>> EditLive Enterprise is the world's most technically advanced 
> >>>> content authoring tool. Experience the power of Track Changes, 
> >>>> Inline Image Editing and ensure content is compliant with 
> >>>> Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev
> >>>> _______________________________________________
> >>>> synalist-public mailing list 
> synalist-public@lists.sourceforge.net
> >>>> https://lists.sourceforge.net/lists/listinfo/synalist-public
> >>>>
> >>>>     
> >>>>         
> >>>
> >>>       
> >> 
> ---------------------------------------------------------------------
> >> -
> >>     
> >>> --------
> >>> EditLive Enterprise is the world's most technically 
> advanced content 
> >>> authoring tool. Experience the power of Track Changes, 
> Inline Image 
> >>> Editing and ensure content is compliant with 
> Accessibility Checking. 
> >>> http://p.sf.net/sfu/ephox-dev2dev 
> >>> _______________________________________________
> >>> synalist-public mailing list synalist-public@lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/synalist-public
> >>>
> >>>   
> >>>       
> >> --------------------------------------------------------------
> >> ----------------
> >> EditLive Enterprise is the world's most technically advanced
> >> content authoring tool. Experience the power of Track 
> >> Changes, Inline Image Editing and ensure content is compliant 
> >> with Accessibility Checking. 
> >> http://p.sf.net/sfu/ephox-dev2dev 
> >> _______________________________________________
> >> synalist-public mailing list synalist-public@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/synalist-public
> >>
> >>     
> >
> >
> > 
> ----------------------------------------------------------------------
> > --------
> > EditLive Enterprise is the world's most technically advanced content
> > authoring tool. Experience the power of Track Changes, Inline Image
> > Editing and ensure content is compliant with Accessibility Checking.
> > http://p.sf.net/sfu/ephox-dev2dev
> > _______________________________________________
> > synalist-public mailing list
> > synalist-public@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/synalist-public
> >
> >   
> 
> 
> --------------------------------------------------------------
> ----------------
> EditLive Enterprise is the world's most technically advanced 
> content authoring tool. Experience the power of Track 
> Changes, Inline Image Editing and ensure content is compliant 
> with Accessibility Checking. 
> http://p.sf.net/sfu/ephox-dev2dev 
> _______________________________________________
> synalist-public mailing list synalist-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/synalist-public
> 


------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to