Definition at line 278 of file webTcpip.c.
Referenced by getNodeLabel().
282 unsigned char ipaddr_buff[4];
283 unsigned char *ipaddr = ipaddr_buff;
284 struct hostent *host;
289 sscanf(
node,
"%d.%d.%d.%d",&a, &b, &c, &d);
290 ipaddr[0] = (
unsigned char)a;
291 ipaddr[1] = (
unsigned char)b;
292 ipaddr[2] = (
unsigned char)c;
293 ipaddr[3] = (
unsigned char)d;
294 if( (host = gethostbyaddr(ipaddr,
sizeof(ipaddr), AF_INET)) == (
struct hostent *)0 )
300 strcpy(name,host->h_name);