Jump to content

jpprade

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by jpprade

  1. Hello,

     

    I am using to last version of dswifi and I have a problem with the httpget example.

     

    it only works 50% of time .

     

    I figured out that the IP adresse return is 0.0.0.0.

     

    struct hostent * myhost = gethostbyname( url );
    struct in_addr todisp;
    todisp.s_addr = (unsigned long *)(myhost->h_addr_list[0]);
    iprintf("Connecting to  : %s\n", inet_ntoa(todisp) );

     

    And it show me 0.0.0.0, some other time it works...

    Does it depends on the dns server of my provider ?

     

    (I can manage to get the IP with a retry mechanism)

     

     

    By the way I am looking for a way to test in an emulator but my computer got no wifi, just a lan link...

    Is this possible ?

     

    thanks for this great library !

×
×
  • Create New...