Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void computer::findName()
- {
- IPAddr IP = inet_addr(Info.IP_address);
- struct hostent* hn;
- hn = gethostbyaddr((char*)&IP, 16, AF_INET);
- this->Info.Name = hn->h_name;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement