Subversion Repositories SvarDOS

Rev

Rev 1559 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1559 Rev 1560
Line 32... Line 32...
32
  tcp_Socket sock; /* watt32 socket */
32
  tcp_Socket sock; /* watt32 socket */
33
  char tcpbuff[1];
33
  char tcpbuff[1];
34
};
34
};
35
 
35
 
36
 
36
 
-
 
37
int net_dnsresolve(char *ip, const char *name, int retries) {
-
 
38
  unsigned long ipnum;
-
 
39
  do {
-
 
40
    ipnum = resolve(name); /* I could use WatTCP's lookup_host() to do all the
-
 
41
                              job for me, unfortunately lookup_host() issues
-
 
42
                              wild outs() calls putting garbage on screen... */
-
 
43
  } while ((ipnum == 0) && (retries-- > 0));
-
 
44
  if (ipnum == 0) return(-1);
-
 
45
  _inet_ntoa(ip, ipnum); /* convert to string */
-
 
46
  return(0);
-
 
47
}
-
 
48
 
-
 
49
 
37
static int dummy_printf(const char * format, ...) {
50
static int dummy_printf(const char * format, ...) {
38
  if (format == NULL) return(-1);
51
  if (format == NULL) return(-1);
39
  return(0);
52
  return(0);
40
}
53
}
41
 
54