Re: Is IpRenewAddress synchrouous or asynchronous call ??
That's the safest way to handle things: always assume that the network
can/will be disconnected at the most inconvenient time.
Paul T.
"Vishal" <vishal.g.shah@gmail.com> wrote in message
news:f27e2dc3-ab4b-4f61-b21f-29788fd2d7d1@d36g2000prf.googlegroups.com...
Actally earlier in my code immedately after calling IpRenewAddress i
used to call GetAdaptersInfo API to retrieve my device's ip
address ,if i get valid ip address i used to notify my application to
start sending udp packets over the network..
but now as you suggested i have now used NotifyAddrChange api in my
code which notifies application of ip change and then i start sending
udp packets over n/w.
On Mar 10, 7:50 pm, "Paul G. Tobey [eMVP]" <p space tobey no spam AT
no instrument no spam DOT com> wrote:
Yes, I can believe that. My guess would be that the call triggers the
sending of the first DHCP packet. If the response appears very quickly,
you
might actually have the address by the time it returns, but I'd have to
tear
apart the NDIS code to actually see what the chances of that are.
Again, is there a real question behind this? You can detect changes in the
IP state of an adapter, if that's what you're after...
Paul T.
"Vishal" <vishal.g.s...@gmail.com> wrote in message
news:97d4164e-8f5b-48a0-bc03-64afdc7c7a40@h5g2000yqh.googlegroups.com...
Thanks for the reply I had this doubt since i was not able to get
renewed ip immediately even though call to IpRenewAddress returned me
NO_ERROR
On Mar 9, 9:29 pm, "Paul G. Tobey [eMVP]" <p space tobey no spam AT no
instrument no spam DOT com> wrote:
It appears to me to be synchronous, although I'm not sure that you will
definitely have a new DHCP address or a new lease when the call returns,
necessarily. What's the real question? If there's no documentation in
the
help about the answer, you should assume that you don't know how it
works
and shouldn't count on it always working the way it works now, except as
documented.
Paul T.
<vishal.g.s...@gmail.com> wrote in message
news:8926bf0d-424c-47dd-802a-1d6d64015c63@q30g2000vbn.googlegroups.com...
Is IpRenewAddress api synchrouous or asynchronous ?????
i.e (blocking or non blocking)- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -